empty /etc/resolv.conf when instance is booted up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-docker |
New
|
Undecided
|
Unassigned |
Bug Description
When running docker container directly (not from openstack), it would bind mount the host machine's /etc/resolv.conf file (in the absence of the --dns=IP_
But running docker container with openstack using nova-docker, the /etc/resolv.conf file is always empty. Running mount command from the container shows the /etc/resolv.conf file is not bind mounted.
From Controller
/var/lib/
::::::::::::::
tag:tag0,
tag:tag0,
tag:tag0,
tag:tag0,
From Compute Host
docker inspect <container-id>
"Dns": [
],
Setting DOCKER_OPTS --dns setting in /etc/default/docker file still gets empty /etc/resolv.conf
DOCKER_OPTS="--dns 10.40.0.5 --dns 10.0.0.5"