The default VM created by docker-machine is good but it’s tied to Boot2docker, which is not customizable at all. I would like to be able to use my own VM, for example one based on Ubuntu, with docker installed and the ssh port exposed. This would allow me to:
- Freely add Virtualbox Shared Folders with automount.
- Install some service directly on the VM
And why I would like to install a service directly on the VM instead of using a Docker container?
The reason is simple, I plan to use Docker in production and I would like to have the following hierarchy:
Nginx used as a front-end web server acting as a reverse proxy to redirect the requests to the proper container. Define folders on the host for static files shared between containers as volumes. That’s why I want that setup, in case the docker daemon fails at least Nginx should be able to display a custom error page. And finally, of course, there will be dockerized web apps running inside their own containers.
So, in order to emulate the mentioned setup on non-Linux platforms, being able to use a custom VM would be very helpful.