I faces a boring issue… I’m not sure if it is an issue or a configuration problem.
When I used the default bridge network and I run this command:
dockerun -it --dns=10.xxx.xxx.xxx 961bf2f8b1b2
The external DNS resolution work without any problem but when I used an user-defined network created like this:
docker network create --subnet=172.18.0.0/16 dockernet
and I run :
dockerun -it --dns=10.xxx.xxx.xxx --network dockernet 961bf2f8b1b2
DNS resolution doesn’t work anymore.
I use a workaround to fix that by bind my /etc/resolv.conf like this:
docker run -it --dns=10.xxx.xxx.xxx --network dockernet -v /etc/resolv.conf:/etc/resolv.conf 961bf2f8b1b2
I guess there is a more suitable solution because by doing that I loose the automatic dns provide by user-defined network …
EDIT: I’m totally stuck … I really need help :’(