If not why boot2docker cannot be used in production ? what is the thing, coreOS brings that boot2docker doesn't have ?
Docker containers are, by default, quite secure; especially if you run your processes as non-privileged users inside the container. You can add an extra layer of safety by enabling AppArmor, SELinux, GRSEC, or another appropriate hardening system.
It is recommended that users transition from Boot2Docker over to Docker Desktop instead (especially with the new WSL2 backend, which supports Windows 10 Home).
It's ok to have multiple processes, but to get the most benefit out of Docker, avoid one container being responsible for multiple aspects of your overall application. You can connect multiple containers using user-defined networks and shared volumes.
But since Docker allows only a single ENTRYPOINT (to be precise, only the last ENTRYPOINT in the Dockerfile has an effect), you need to find a way to run multiple processes (the tunnel and the application) with a single command.
boot2docker is the name of the Linux (tinyCore) VM used in non-Linux host (by, for instance, docker machine
).
If you go into production with Docker, it is best to do so on Linux host (where you don't need boot2docker anyway).
After that, it depends on your production environment: if it is a complex one (where clustering and service replication is a concern), then CoreOS proposes a platform (which does support docker): see "7 reasons why you should be using CoreOS with Docker"
CoreOS is a barebones Linux distribution designed to make large multiple-machine deployments, using different softwares and dependencies, easier to scale and easier to manage. It is built for high availability and security.
It does not come with a package manager and thus requires containers such as those provided by Docker.
It uses "fleet" for cluster management and "etcd" for service discovery and keeping configuration up to date across the cluster.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With