I recently upgraded docker version on my Ubuntu to latest 1.9 version. During the upgrade docker network bridge gateway has changed from 172.17.42.1 to 172.17.0.1.
I had some existing containers where the resolv.conf still points to 172.17.42.1 so whenever I restart my container the resolv.conf is resetting to 172.17.42.1. I tried to modify the /var/lib/docker/containers/<containerid>/resolv.conf but it has no effect.
Currently whenever I restart the container I connect to container and change /etc/resolv.conf file manually. This changes to this file are lost during container restart. I don't want to kill my container and re-create them again.
Is there any way to make my resolv.conf permanent for existing containers?
Thanks in advance -Kesav