aegir-project / dockerfiles

Official dockerfiles for Aegir.
https://hub.docker.com/r/aegir/hostmaster/
MIT License
21 stars 11 forks source link

Add docker client to image #12

Closed jonpugh closed 7 years ago

jonpugh commented 8 years ago

In order for us to break out of the aegir shell (and actually scale aegir with docker) we need hostmaster to control docker.

This PR adds the Docker Client, inspired by Rancher Agent.

With this new image, if you mount /var/run/docker.sock and set the container to privileged, the Aegir user can run docker ps and get a list from inside the container!

This means that we can now create a new Provision web server class that uses docker instead of apache and restarts the containers instead of restarting the web server