botanicus / docker-project-manager

Quickly spin off Docker containers for prototyping and development with your full dev environment, dotfiles and tools of choice.
MIT License
0 stars 1 forks source link

Support DinD #8

Open botanicus opened 5 years ago

botanicus commented 5 years ago

The top-level manager #6 can work in 2 ways:

Either it prints it commands that are then piped to the host OS shell (that all is probably wrapped into a helper). This is OK to start, but at the end of the day, it'd be great if the manager could execute the commands directly.

The issue is that it's hard to install docker in BusyBox. BusyBox doesn't have a package manager. I can imagine a lot of tools would be missing for compilation. I wonder whether it's possible to build a statically-linked docker binary and copy it just as we copy the binary we build from the Crystal source.

Probably the easiest solution is to derive the final image from https://hub.docker.com/_/docker

botanicus commented 5 years ago

Two things (source):

I reckon it makes sense to mount Docker as a volume for now, since it's the easier and quicker solution.

botanicus commented 5 years ago

If we'd do real DinD, we'd have to do #14. For passing the binary as a volume, we don't have to.