3 ms·
Docker ships with swarm, and swarm + a compose file does everything you just described. Swarm is such a pleasant and easy alternative that comes out of the box
by sgk284 8y ago
Docker ships with swarm, and swarm + a compose file does everything you just described.
Swarm is such a pleasant and easy alternative that comes out of the box with Docker, does 90% of what Kubernetes does, and does 100% of what anyone with less than 50 servers needs. The learning curve is also an order of magnitude easier.
- nevi-me 8y agoDocker started supporting local k8s as a swarm alternative, I think from last month's release.
- spicytunacone 8y agoI'm reading that it's only for Docker EE or Docker Desktop (Mac/Windows). https://forums.docker.com/t/is-there-a-built-in-kubernetes-in-docker-ce-for-linux/54374/2 https://forums.docker.com/t/is-there-a-built-in-kubernetes-i... https://blog.docker.com/2018/07/kubernetes-is-now-available-in-docker-desktop-stable-channel/ https://blog.docker.com/2018/07/kubernetes-is-now-available-... I just installed Docker via package manager so I guess I never really learned about the organization's offerings in total and didn't know which product I had (CE for Linux). Is there a more up-to-date/better practice for using Docker CE with k8s than this guide dated March[0] using Minikube[1]? [0]: https://blog.sourcerer.io/a-kubernetes-quick-start-for-people-who-know-just-enough-about-docker-to-get-by-71c5933b4633 https://blog.sourcerer.io/a-kubernetes-quick-start-for-peopl... [1]: https://github.com/kubernetes/minikube https://github.com/kubernetes/minikube
- raarts 8y agoFully agree. K8s is mostly beneficial for larger companies, because of namespaces support, and devops authentication. For smaller teams Swarm is just way more practical and versatile.
- tiangolo 8y agoTotally agree. Docker Compose is excellent for local development, and Docker Swarm mode uses the same file and is almost the same thing. Some minor additions in extra docker-compose files and it's ready for production in a cluster. I don't get why Swarm is so underrated. For the same $5 bucks in a full Linux VPS with Linode or DigitalOcean (or even the free tier in Google Cloud) you can get a full cluster, starting with a single node, including automatic HTTPS certificates, etc. Here's my quick guide, with a Linux from scratch to a prod server in about 20 min. Including full-stack app: https://github.com/tiangolo/full-stack/blob/master/docker-swarm-cluster-deploy.md https://github.com/tiangolo/full-stack/blob/master/docker-sw...