Alternatives to Docker Swarm logo

Alternatives to Docker Swarm

Docker Compose, Rancher, Ansible, Apache Mesos, and CoreOS are the most popular alternatives and competitors to Docker Swarm.
681
809
+ 1
267

What is Docker Swarm and what are its top alternatives?

Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.
Docker Swarm is a tool in the Container Tools category of a tech stack.
Docker Swarm is an open source tool with 5.8K GitHub stars and 1.1K GitHub forks. Here’s a link to Docker Swarm's open source repository on GitHub

Top Alternatives to Docker Swarm

  • Docker Compose

    Docker Compose

    With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running. ...

  • Rancher

    Rancher

    Rancher is an open source container management platform that includes full distributions of Kubernetes, Apache Mesos and Docker Swarm, and makes it simple to operate container clusters on any cloud or infrastructure platform. ...

  • Ansible

    Ansible

    Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s goals are foremost those of simplicity and maximum ease of use. ...

  • Apache Mesos

    Apache Mesos

    Apache Mesos is a cluster manager that simplifies the complexity of running applications on a shared pool of servers. ...

  • CoreOS

    CoreOS

    It is designed for security, consistency, and reliability. Instead of installing packages via yum or apt, it uses Linux containers to manage your services at a higher level of abstraction. A single service's code and all dependencies are packaged within a container that can be run on one or many machines. ...

  • Kubernetes

    Kubernetes

    Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions. ...

  • Compose

    Compose

    Compose makes it easy to spin up multiple open source databases with just one click. Deploy MongoDB for production, take Redis out for a performance test drive, or spin up RethinkDB in development before rolling it out to production. ...

  • Docker Cloud

    Docker Cloud

    Docker Cloud is the best way to deploy and manage Dockerized applications. Docker Cloud makes it easy for new Docker users to manage and deploy the full spectrum of applications, from single container apps to distributed microservices stacks, to any cloud or on-premises infrastructure. ...

Docker Swarm alternatives & related posts

Docker Compose logo

Docker Compose

13.5K
9.7K
473
Define and run multi-container applications with Docker
13.5K
9.7K
+ 1
473
PROS OF DOCKER COMPOSE
  • 119
    Multi-container descriptor
  • 108
    Fast development environment setup
  • 75
    Easy linking of containers
  • 65
    Simple yaml configuration
  • 58
    Easy setup
  • 15
    Yml or yaml format
  • 11
    Use Standard Docker API
  • 7
    Open source
  • 4
    Can choose Discovery Backend
  • 4
    Go from template to application in minutes
  • 2
    Scalable
  • 2
    Easy configuration
  • 2
    Kubernetes integration
  • 1
    Quick and easy
CONS OF DOCKER COMPOSE
  • 7
    Tied to single machine
  • 4
    Still very volatile, changing syntax often

related Docker Compose posts

Simon Reymann
Senior Fullstack Developer at QUANTUSflow Software GmbH · | 28 upvotes · 2.8M views

Our whole DevOps stack consists of the following tools:

  • GitHub (incl. GitHub Pages/Markdown for Documentation, GettingStarted and HowTo's) for collaborative review and code management tool
  • Respectively Git as revision control system
  • SourceTree as Git GUI
  • Visual Studio Code as IDE
  • CircleCI for continuous integration (automatize development process)
  • Prettier / TSLint / ESLint as code linter
  • SonarQube as quality gate
  • Docker as container management (incl. Docker Compose for multi-container application management)
  • VirtualBox for operating system simulation tests
  • Kubernetes as cluster management for docker containers
  • Heroku for deploying in test environments
  • nginx as web server (preferably used as facade server in production environment)
  • SSLMate (using OpenSSL) for certificate management
  • Amazon EC2 (incl. Amazon S3) for deploying in stage (production-like) and production environments
  • PostgreSQL as preferred database system
  • Redis as preferred in-memory database/store (great for caching)

The main reason we have chosen Kubernetes over Docker Swarm is related to the following artifacts:

  • Key features: Easy and flexible installation, Clear dashboard, Great scaling operations, Monitoring is an integral part, Great load balancing concepts, Monitors the condition and ensures compensation in the event of failure.
  • Applications: An application can be deployed using a combination of pods, deployments, and services (or micro-services).
  • Functionality: Kubernetes as a complex installation and setup process, but it not as limited as Docker Swarm.
  • Monitoring: It supports multiple versions of logging and monitoring when the services are deployed within the cluster (Elasticsearch/Kibana (ELK), Heapster/Grafana, Sysdig cloud integration).
  • Scalability: All-in-one framework for distributed systems.
  • Other Benefits: Kubernetes is backed by the Cloud Native Computing Foundation (CNCF), huge community among container orchestration tools, it is an open source and modular tool that works with any OS.
See more

Recently I have been working on an open source stack to help people consolidate their personal health data in a single database so that AI and analytics apps can be run against it to find personalized treatments. We chose to go with a #containerized approach leveraging Docker #containers with a local development environment setup with Docker Compose and nginx for container routing. For the production environment we chose to pull code from GitHub and build/push images using Jenkins and using Kubernetes to deploy to Amazon EC2.

We also implemented a dashboard app to handle user authentication/authorization, as well as a custom SSO server that runs on Heroku which allows experts to easily visit more than one instance without having to login repeatedly. The #Backend was implemented using my favorite #Stack which consists of FeathersJS on top of Node.js and ExpressJS with PostgreSQL as the main database. The #Frontend was implemented using React, Redux.js, Semantic UI React and the FeathersJS client. Though testing was light on this project, we chose to use AVA as well as ESLint to keep the codebase clean and consistent.

See more
Rancher logo

Rancher

785
1.2K
644
Open Source Platform for Running a Private Container Service
785
1.2K
+ 1
644
PROS OF RANCHER
  • 103
    Easy to use
  • 79
    Open source and totally free
  • 63
    Multi-host docker-compose support
  • 58
    Load balancing and health check included
  • 58
    Simple
  • 44
    Rolling upgrades, green/blue upgrades feature
  • 42
    Dns and service discovery out-of-the-box
  • 37
    Only requires docker
  • 34
    Multitenant and permission management
  • 29
    Easy to use and feature rich
  • 11
    Cross cloud compatible
  • 11
    Does everything needed for a docker infrastructure
  • 8
    Simple and powerful
  • 8
    Next-gen platform
  • 7
    Very Docker-friendly
  • 6
    Support Kubernetes and Swarm
  • 6
    Application catalogs with stack templates (wizards)
  • 6
    Supports Apache Mesos, Docker Swarm, and Kubernetes
  • 6
    Rolling and blue/green upgrades deployments
  • 6
    High Availability service: keeps your app up 24/7
  • 5
    Easy to use service catalog
  • 4
    Very intuitive UI
  • 4
    IaaS-vendor independent, supports hybrid/multi-cloud
  • 4
    Awesome support
  • 3
    Scalable
  • 2
    Requires less infrastructure requirements
CONS OF RANCHER
  • 8
    Hosting Rancher can be complicated

related Rancher posts

Ansible logo

Ansible

13.1K
10.4K
1.3K
Radically simple configuration-management, application deployment, task-execution, and multi-node orchestration engine
13.1K
10.4K
+ 1
1.3K
PROS OF ANSIBLE
  • 275
    Agentless
  • 204
    Great configuration
  • 193
    Simple
  • 173
    Powerful
  • 150
    Easy to learn
  • 66
    Flexible
  • 54
    Doesn't get in the way of getting s--- done
  • 33
    Makes sense
  • 29
    Super efficient and flexible
  • 27
    Powerful
  • 11
    Dynamic Inventory
  • 8
    Backed by Red Hat
  • 7
    Works with AWS
  • 6
    Cloud Oriented
  • 6
    Easy to maintain
  • 4
    Because SSH
  • 4
    Multi language
  • 4
    Easy
  • 4
    Simple
  • 4
    Procedural or declarative, or both
  • 4
    Simple and powerful
  • 3
    Vagrant provisioner
  • 3
    Consistency
  • 2
    Debugging is simple
  • 2
    Well-documented
  • 2
    Merge hash to get final configuration similar to hiera
  • 2
    Fast as hell
  • 2
    Masterless
  • 1
    Work on windows, but difficult to manage
CONS OF ANSIBLE
  • 5
    Hard to install
  • 4
    Dangerous
  • 3
    Bloated
  • 3
    Backward compatibility
  • 2
    Doesn't Run on Windows
  • 2
    No immutable infrastructure

related Ansible posts

Tymoteusz Paul
Devops guy at X20X Development LTD · | 22 upvotes · 4.4M views

Often enough I have to explain my way of going about setting up a CI/CD pipeline with multiple deployment platforms. Since I am a bit tired of yapping the same every single time, I've decided to write it up and share with the world this way, and send people to read it instead ;). I will explain it on "live-example" of how the Rome got built, basing that current methodology exists only of readme.md and wishes of good luck (as it usually is ;)).

It always starts with an app, whatever it may be and reading the readmes available while Vagrant and VirtualBox is installing and updating. Following that is the first hurdle to go over - convert all the instruction/scripts into Ansible playbook(s), and only stopping when doing a clear vagrant up or vagrant reload we will have a fully working environment. As our Vagrant environment is now functional, it's time to break it! This is the moment to look for how things can be done better (too rigid/too lose versioning? Sloppy environment setup?) and replace them with the right way to do stuff, one that won't bite us in the backside. This is the point, and the best opportunity, to upcycle the existing way of doing dev environment to produce a proper, production-grade product.

I should probably digress here for a moment and explain why. I firmly believe that the way you deploy production is the same way you should deploy develop, shy of few debugging-friendly setting. This way you avoid the discrepancy between how production work vs how development works, which almost always causes major pains in the back of the neck, and with use of proper tools should mean no more work for the developers. That's why we start with Vagrant as developer boxes should be as easy as vagrant up, but the meat of our product lies in Ansible which will do meat of the work and can be applied to almost anything: AWS, bare metal, docker, LXC, in open net, behind vpn - you name it.

We must also give proper consideration to monitoring and logging hoovering at this point. My generic answer here is to grab Elasticsearch, Kibana, and Logstash. While for different use cases there may be better solutions, this one is well battle-tested, performs reasonably and is very easy to scale both vertically (within some limits) and horizontally. Logstash rules are easy to write and are well supported in maintenance through Ansible, which as I've mentioned earlier, are at the very core of things, and creating triggers/reports and alerts based on Elastic and Kibana is generally a breeze, including some quite complex aggregations.

If we are happy with the state of the Ansible it's time to move on and put all those roles and playbooks to work. Namely, we need something to manage our CI/CD pipelines. For me, the choice is obvious: TeamCity. It's modern, robust and unlike most of the light-weight alternatives, it's transparent. What I mean by that is that it doesn't tell you how to do things, doesn't limit your ways to deploy, or test, or package for that matter. Instead, it provides a developer-friendly and rich playground for your pipelines. You can do most the same with Jenkins, but it has a quite dated look and feel to it, while also missing some key functionality that must be brought in via plugins (like quality REST API which comes built-in with TeamCity). It also comes with all the common-handy plugins like Slack or Apache Maven integration.

The exact flow between CI and CD varies too greatly from one application to another to describe, so I will outline a few rules that guide me in it: 1. Make build steps as small as possible. This way when something breaks, we know exactly where, without needing to dig and root around. 2. All security credentials besides development environment must be sources from individual Vault instances. Keys to those containers should exist only on the CI/CD box and accessible by a few people (the less the better). This is pretty self-explanatory, as anything besides dev may contain sensitive data and, at times, be public-facing. Because of that appropriate security must be present. TeamCity shines in this department with excellent secrets-management. 3. Every part of the build chain shall consume and produce artifacts. If it creates nothing, it likely shouldn't be its own build. This way if any issue shows up with any environment or version, all developer has to do it is grab appropriate artifacts to reproduce the issue locally. 4. Deployment builds should be directly tied to specific Git branches/tags. This enables much easier tracking of what caused an issue, including automated identifying and tagging the author (nothing like automated regression testing!).

Speaking of deployments, I generally try to keep it simple but also with a close eye on the wallet. Because of that, I am more than happy with AWS or another cloud provider, but also constantly peeking at the loads and do we get the value of what we are paying for. Often enough the pattern of use is not constantly erratic, but rather has a firm baseline which could be migrated away from the cloud and into bare metal boxes. That is another part where this approach strongly triumphs over the common Docker and CircleCI setup, where you are very much tied in to use cloud providers and getting out is expensive. Here to embrace bare-metal hosting all you need is a help of some container-based self-hosting software, my personal preference is with Proxmox and LXC. Following that all you must write are ansible scripts to manage hardware of Proxmox, similar way as you do for Amazon EC2 (ansible supports both greatly) and you are good to go. One does not exclude another, quite the opposite, as they can live in great synergy and cut your costs dramatically (the heavier your base load, the bigger the savings) while providing production-grade resiliency.

See more
Sebastian Gębski

Heroku was a decent choice to start a business, but at some point our platform was too big, too complex & too heterogenic, so Heroku started to be a constraint, not a benefit. First, we've started containerizing our apps with Docker to eliminate "works in my machine" syndrome & uniformize the environment setup. The first orchestration was composed with Docker Compose , but at some point it made sense to move it to Kubernetes. Fortunately, we've made a very good technical decision when starting our work with containers - all the container configuration & provisions HAD (since the beginning) to be done in code (Infrastructure as Code) - we've used Terraform & Ansible for that (correspondingly). This general trend of containerisation was accompanied by another, parallel & equally big project: migrating environments from Heroku to AWS: using Amazon EC2 , Amazon EKS, Amazon S3 & Amazon RDS.

See more
Apache Mesos logo

Apache Mesos

282
373
30
Develop and run resource-efficient distributed systems
282
373
+ 1
30
PROS OF APACHE MESOS
  • 20
    Easy scaling
  • 6
    Web UI
  • 2
    Fault-Tolerant
  • 1
    Elastic Distributed System
  • 1
    High-Available
CONS OF APACHE MESOS
  • 1
    Not for long term
  • 1
    Depends on Zookeeper

related Apache Mesos posts

Docker containers on Mesos run their microservices with consistent configurations at scale, along with Aurora for long-running services and cron jobs.

See more
CoreOS logo

CoreOS

214
259
47
Linux for Massive Server Deployments
214
259
+ 1
47
PROS OF COREOS
  • 21
    Container management
  • 15
    Lightweight
  • 11
    Systemd
CONS OF COREOS
  • 1
    End-of-lifed

related CoreOS posts

Kubernetes logo

Kubernetes

34.8K
29.1K
617
Manage a cluster of Linux containers as a single system to accelerate Dev and simplify Ops
34.8K
29.1K
+ 1
617
PROS OF KUBERNETES
  • 154
    Leading docker container management solution
  • 123
    Simple and powerful
  • 97
    Open source
  • 74
    Backed by google
  • 56
    The right abstractions
  • 24
    Scale services
  • 18
    Replication controller
  • 9
    Permission managment
  • 7
    Simple
  • 7
    Supports autoscaling
  • 6
    Cheap
  • 4
    No cloud platform lock-in
  • 4
    Reliable
  • 4
    Self-healing
  • 3
    Promotes modern/good infrascture practice
  • 3
    Open, powerful, stable
  • 3
    Quick cloud setup
  • 3
    Scalable
  • 2
    Runs on azure
  • 2
    Cloud Agnostic
  • 2
    Backed by Red Hat
  • 2
    Custom and extensibility
  • 2
    Captain of Container Ship
  • 2
    A self healing environment with rich metadata
  • 1
    Golang
  • 1
    Expandable
  • 1
    Everything of CaaS
  • 1
    Sfg
  • 1
    Easy setup
  • 1
    Gke
CONS OF KUBERNETES
  • 13
    Poor workflow for development
  • 11
    Steep learning curve
  • 5
    Orchestrates only infrastructure
  • 2
    High resource requirements for on-prem clusters

related Kubernetes posts

Conor Myhrvold
Tech Brand Mgr, Office of CTO at Uber · | 38 upvotes · 3.8M views

How Uber developed the open source, end-to-end distributed tracing Jaeger , now a CNCF project:

Distributed tracing is quickly becoming a must-have component in the tools that organizations use to monitor their complex, microservice-based architectures. At Uber, our open source distributed tracing system Jaeger saw large-scale internal adoption throughout 2016, integrated into hundreds of microservices and now recording thousands of traces every second.

Here is the story of how we got here, from investigating off-the-shelf solutions like Zipkin, to why we switched from pull to push architecture, and how distributed tracing will continue to evolve:

https://eng.uber.com/distributed-tracing/

(GitHub Pages : https://www.jaegertracing.io/, GitHub: https://github.com/jaegertracing/jaeger)

Bindings/Operator: Python Java Node.js Go C++ Kubernetes JavaScript OpenShift C# Apache Spark

See more
Yshay Yaacobi

Our first experience with .NET core was when we developed our OSS feature management platform - Tweek (https://github.com/soluto/tweek). We wanted to create a solution that is able to run anywhere (super important for OSS), has excellent performance characteristics and can fit in a multi-container architecture. We decided to implement our rule engine processor in F# , our main service was implemented in C# and other components were built using JavaScript / TypeScript and Go.

Visual Studio Code worked really well for us as well, it worked well with all our polyglot services and the .Net core integration had great cross-platform developer experience (to be fair, F# was a bit trickier) - actually, each of our team members used a different OS (Ubuntu, macos, windows). Our production deployment ran for a time on Docker Swarm until we've decided to adopt Kubernetes with almost seamless migration process.

After our positive experience of running .Net core workloads in containers and developing Tweek's .Net services on non-windows machines, C# had gained back some of its popularity (originally lost to Node.js), and other teams have been using it for developing microservices, k8s sidecars (like https://github.com/Soluto/airbag), cli tools, serverless functions and other projects...

See more
Compose logo

Compose

193
113
206
We host databases for busy devs: production-ready, cloud-hosted, open source.
193
113
+ 1
206
PROS OF COMPOSE
  • 42
    Simple to set up
  • 32
    One-click mongodb
  • 29
    Automated Backups
  • 23
    Designed to scale
  • 21
    Easy interface
  • 13
    Fast and Simple
  • 10
    Real-Time Monitoring
  • 7
    Fastest MongoDB Available
  • 6
    Great Design
  • 6
    REST API
  • 4
    Easy to set up
  • 3
    Free for testing
  • 3
    Geospatial support
  • 2
    Elasticsearch
  • 2
    Heroku Add-on
  • 1
    Automated Health Checks
  • 1
    Email Support
  • 1
    Query Logs
CONS OF COMPOSE
    Be the first to leave a con

    related Compose posts

    Gregory Koberger

    We went with MongoDB , almost by mistake. I had never used it before, but I knew I wanted the *EAN part of the MEAN stack, so why not go all in. I come from a background of SQL (first MySQL , then PostgreSQL ), so I definitely abused Mongo at first... by trying to turn it into something more relational than it should be. But hey, data is supposed to be relational, so there wasn't really any way to get around that.

    There's a lot I love about MongoDB, and a lot I hate. I still don't know if we made the right decision. We've been able to build much quicker, but we also have had some growing pains. We host our databases on MongoDB Atlas , and I can't say enough good things about it. We had tried MongoLab and Compose before it, and with MongoDB Atlas I finally feel like things are in a good place. I don't know if I'd use it for a one-off small project, but for a large product Atlas has given us a ton more control, stability and trust.

    See more
    Docker Cloud logo

    Docker Cloud

    76
    113
    11
    A hosted service for Docker container management and deployment
    76
    113
    + 1
    11
    PROS OF DOCKER CLOUD
    • 9
      Easy to use
    • 2
      Seamless transition from docker compose
    CONS OF DOCKER CLOUD
      Be the first to leave a con

      related Docker Cloud posts