gmacario / easy-genivigo

Easily deploy a Go.CD infrastructure via docker-compose
MIT License
1 stars 3 forks source link

goagent-docker: Add parameter to start Docker daemon #11

Open gmacario opened 8 years ago

gmacario commented 8 years ago

As an alternative to bind mounting /var/lib/docker.sock to use the Docker daemon running on the host, add a command-line option to start another docker daemon inside the container.

This will allow running containers which allocate ports or other resources already allocated by the containers already running on the host.

Even though this approach is probably less efficient than relying on host Docker daemon, it will also reduce the attack vector to the host in case malicious containers are run inside goagent-docker.

See also https://at.projects.genivi.org/jira/browse/TOOL-68