Zero-Downtime Deployments with Docker Swarm and Portainer - Part 2/2
Zero-downtime deployments with Docker Swarm and Portainer Part 2/2 What have we achieved so far? …
With ayedo, running your apps in Kubernetes is a breeze. With Docker Swarm, we offer a production-ready alternative to Kubernetes for those who are comfortable with Docker’s abstractions but need more availability and scalability. With the ayedo Fleet Custom Edition, you can enjoy Docker Swarm without the operational headaches. Try it out.

We love Kubernetes. It’s just our thing. Nevertheless, many companies still rely on Docker Swarm for orchestrating their container workloads, and rightly so. Docker Swarm is less flexible than Kubernetes in many ways, but definitely less complex—making it the ideal candidate for beginners in the world of distributed container workloads. Docker Swarm extends the syntax and semantics of the already familiar Docker commands with a concept of Services and Stacks to make replicated workloads jointly manageable.
For those who, like us, work a lot with docker-compose, transitioning from Docker Standalone to Docker Swarm’s stacks will be easy—stack files are just compose files with slightly different syntax. This relatively flat learning curve not only facilitates the entry into scalable microservice architectures but also serves as an ideal preparation if you aim to switch to Kubernetes.
Besides the short adaptation phase when transitioning from Docker Standalone to Docker Swarm, operational stability also speaks for Docker Swarm. Especially for stateless workloads, a Docker Swarm cluster is often preferable to a Kubernetes cluster due to the low complexity of the setup and the general stability and maturity of Docker primitives.
In today’s technology-driven world, containerizing applications is an important step towards flexibility and scalability. Docker Swarm is a container orchestration platform that allows developers to run and manage Docker containers in a cluster. It enables the management of containers on distributed systems and is a great solution for scalability and high availability when Kubernetes is simply too much.
In this blog post, we will show you how to create a Docker Swarm cluster with 3 master and 3 worker nodes on Hetzner Cloud and then install Portainer to conveniently manage the swarm through a modern web interface.
apt update
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
usermod -aG docker $USER
systemctl start docker
systemctl enable docker
docker swarm init --advertise-addr <IP-address-of-master-node>
docker swarm join-token manager
docker swarm join --token <Master-Join-Token> <IP-address-of-master-node>
docker swarm join --token <Master-Join-Token> <IP-address-of-master-node>
curl -L https://downloads.portainer.io/ce2-18/portainer-agent-stack.yml -o portainer-agent-stack.yml
docker stack deploy -c portainer-agent-stack.yml portainer
https://<IP-address-of-master-node>:9443).Creating a Docker Swarm cluster with 3 master and 3 worker nodes on Hetzner Cloud is a powerful way to orchestrate and scale container applications cost-effectively. Using Portainer as a graphical user interface significantly simplifies container management and provides developers with an intuitive way to monitor and control their applications. Use this guide to optimize your development and deployment processes and benefit from the advantages of containerization.
Zero-downtime deployments with Docker Swarm and Portainer Part 2/2 What have we achieved so far? …
In modern software development, container orchestration is no longer an unfamiliar term but an …
Zero-downtime deployments with Docker Swarm and Portainer Part 1/2 What are Zero-downtime …