Lets learn "How to update dns configure in docker on MacOS?"
In this tutorial, we'll learn about how to modify DNS configuration in docker daemon. If you are not familiar with docker images you can check my tutorial here. So before building the docker image docker builds the context and if some statement in Dockerfile includes accessing the external servers which require special DNS configuration, we need to set that configuration in docker preferences. Below are the steps to do that.
Step 1. Open Docker preferences.
![]() |
Click on the Preferences option |
Step 2. Go inside Daemon -> Advanced and set the configuration.
Step 3. Click "Apply & Restart" from above image.
HOPE YOU LIKE THIS TUTORIAL. FEEL FREE TO COMMENT BELOW IF YOU HAVE ANY DOUBTS. AND STAY TUNED FOR MORE TUTORIALS :)
Comments
Post a Comment