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.


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= --dns= centos /bin/bash
Answer Question

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

  • Minimum 20 character

related questions

Most liked questions

Most answered questions

AHCB Refresh
AHCB Refresh
Forgot password
Ask a Question
Minimum 20 character
Minimum 20 character
Minimum 20 character
AHCB Refresh