I am having a weired issue, I have provisioned my cluster on Amazon EC2 with NetworkManager service fully switched off and removed. I am using Mesos for Orchestration and having mesos deploy docker containers.
For some reason with NetworkManager off, when I deploy containers thru mesos I dont see any of the Network config copied over to the /var/lib/docker/containers/[container id] dir. It was missing files like hosts, hostname, resolv.conf, mqueue, shm. Only files I see in there are config.json and hostconfig.json.
However on the same nodes if I manually deploy thru just ‘docker run’ cmd network configs are copied fine.
Question is how does docker knows where to pick the network config from, does it rely on specific network settings for it to copy? What causes docker not to copy those files to container dir?