We have been trying to run multiple (5-7) docker daemon processes in one host, in order to provide isolated docker environment to each developer. We create custom network bridges and run like
docker daemon -D -g /home/{user}/docker/g --exec-root=/home/{user}/docker/e -b br_{user} --dns=8.8.8.8 --iptables=false -H unix:///home/{user}/docker/docker.sock -p /home/{user}/docker/docker.pid
It runs for a day or so, but the issue occurs almost every day that network stop working suddenly. Digging into it, we’ve found that IP masquerade in the iptables are gone in those events, but we don’t see why iptables get broken. Also sometimes we see docker.pid file is also gone along with the issue, but the daemon process is up, and as far as the containerized process don’t try to send outgoing packets it is ok. The issue affects only the outgoing packet from the containerized processes.
My question is,
- Do you think more than one daemon processes can run in one host? Any idea on things to keep in mind?
- Do you have any suggestions where to look to do further investigation?
- Any workaround?
Docker version is 1.8.2, the host OS as well as most dockerized process OS is Ubuntu14.04
Thanks,
Hitoshi