Currently 'docker run -dns' can be used to override the dns configuration passed to the container.
Typically this is necessary when the host dns configuration is invalid for the container (eg. 127.0.0.1).
When this is the case the -dns flags is necessary for every run.
Instead of having to pass this flag at every run, it would be better to specify it once to the daemon, eg.
$ sudo docker -d -dns 8.8.8.8
$ docker run busybox echo I feel better already
Currently 'docker run -dns' can be used to override the dns configuration passed to the container.
Typically this is necessary when the host dns configuration is invalid for the container (eg. 127.0.0.1).
When this is the case the -dns flags is necessary for every run.
Instead of having to pass this flag at every run, it would be better to specify it once to the daemon, eg.
$ sudo docker -d -dns 8.8.8.8 $ docker run busybox echo I feel better already