Docker, ability to set DNS value for docker containers


BRiT

Recommended Posts

I would like the extended docker configuration page to be able to allow settings for the "dns" setting on a per container basis. This would be passed to the docker container command as: --dns=value_the_user_set

 

I tried setting it as DOCKER_OPTS="--dns=my.dns.server.ip" in the /etc/default/docker file but it did not take effect when stopping and starting the docker container.

 

I have one container, that because of the way it was built, is not using what the unRAID server uses.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.