jesseduffield / lazydocker

The lazier way to manage everything docker
MIT License
36.45k stars 1.18k forks source link

Make it easier to deploy lazydocker as part of a container 'stack' #200

Open gggeek opened 4 years ago

gggeek commented 4 years ago

My need: include a tool to allow the end users to 'monitor this set of containers', as part of an application which is deployed as a set of containers managed via docker-compose

Ideally, I would be running lazydocker as one more container within the 'app' stack.

So far I have included Portainer as a "self-contained container monitor" solution along with my application stacks, but it seems to

So far I managed to achieve a good part of what I need by:

What is missing, imho:

gggeek commented 4 years ago

Other improvements that could be useful when running lazydocker within a container which mounts different data from different host dirs / volumes into separate container dirs:

gggeek commented 4 years ago

PS: here is the project in question: https://github.com/gggeek/db-3v4l

gggeek commented 4 years ago

Also: since it seems that lazydocker needs to run the docker executable, for optimal results the default container used to run lazydocker should probably be rebased from using Scratch as starting layer to using f.e. rancher/docker-from-scratch

davenquinn commented 4 years ago

Something along these lines would be awesome, although for me requiring lazydocker to be installed on the host system is not too onerous of a requirement. The key thing that is needed is a way to pass an arbitrary config file (e.g. a -c/--config flag as mentioned earlier).

This is needed as some of my projects have a docker-compose configuration defined in a wrapper script, which must be called by lazydocker instead of docker-compose.

Secondarily, having the ability to hide containers, images, and volumes not bound to a specific docker-compose context would be nice.