Share & learn

Through Innovative Digital Library

How to override default nameserver for single container.

I want to create new container with public DNS without making any changes into global configuration files.
 



Answers

Posted by Alex on February 3rd 2018 21:34 PM

we can run adhoc command to start the docker container with public DNS as needed.

docker run -it --name NewHost11 --dns=8.8.8.8 --dns=4.4.4.4 centos /bin/bash
Answer Question

Your email address will not be published. Required fields are marked *

  • Minimum 20 character
AHCB

related questions

Most liked questions

Most answered questions

Login
AHCB Refresh
Register
AHCB Refresh
Forgot password
Ask a Question
Minimum 20 character
Minimum 20 character
Reply
Minimum 20 character
AHCB Refresh