docker-archive / dockercloud-agent

Agent to manage docker in nodes controlled by Docker Cloud
https://cloud.docker.com/
Apache License 2.0
34 stars 21 forks source link

Is this possible to run agent from docker-container #31

Closed aahutsal closed 8 years ago

aahutsal commented 8 years ago

Gentoo Linux (the only true server linux distro) is not supported by Docker Cloud currently. There's also no dockercloud-agent in repos (both official and docker layman repo). I've done several manual attempts to build it from sources, but seems there's some dependency mess. I guess it should be relatively easy to run it from docker container, but since I believe there's hard interaction with host machine docker itself would anybody help me running it this way? passing -v /var/run/docker.sock:/var/lib/docker.sock won't help?

tifayuki commented 8 years ago

@gutsal-arsen

It is possible to run the agent in a container, but it won't be supported officially. We are looking into moving the current implementation of the cloud to a docker native solution, and the agent will be deprecated soon.

I have done some POC on running the agent in a container in tutum cloud, and it should work in Docker Cloud as well with some changes of the code. If you are interested, you can see the code here as a reference: https://github.com/tutumcloud/tutum-agent/tree/containerization

aahutsal commented 8 years ago

@tifayuki thank you. Will apparently check it now.