Docker Machine vs Docker Swarm

Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Docker Machine
Docker Machine

339
346
+ 1
13
Docker Swarm
Docker Swarm

426
411
+ 1
207
Add tool

Docker Machine vs Docker Swarm: What are the differences?

Docker Machine: Machine management for a container-centric world. Machine lets you create Docker hosts on your computer, on cloud providers, and inside your own data center. It creates servers, installs Docker on them, then configures the Docker client to talk to them; Docker Swarm: Native clustering for Docker. Turn a pool of Docker hosts into a single, virtual host. 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 Machine and Docker Swarm can be categorized as "Container" tools.

"Easy docker hosts management" is the primary reason why developers consider Docker Machine over the competitors, whereas "Docker friendly" was stated as the key factor in picking Docker Swarm.

Docker Machine and Docker Swarm are both open source tools. Docker Swarm with 5.63K GitHub stars and 1.11K forks on GitHub appears to be more popular than Docker Machine with 5.39K GitHub stars and 1.56K GitHub forks.

Docker, Bugsnag, and Dial Once are some of the popular companies that use Docker Swarm, whereas Docker Machine is used by Docker, Leftronic, and DNT. Docker Swarm has a broader approval, being mentioned in 82 company stacks & 38 developers stacks; compared to Docker Machine, which is listed in 43 company stacks and 47 developer stacks.

What is Docker Machine?

Machine lets you create Docker hosts on your computer, on cloud providers, and inside your own data center. It creates servers, installs Docker on them, then configures the Docker client to talk to them.

What is Docker Swarm?

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.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Docker Machine?
Why do developers choose Docker Swarm?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    Jobs that mention Docker Machine and Docker Swarm as a desired skillset
    What companies use Docker Machine?
    What companies use Docker Swarm?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Docker Machine?
    What tools integrate with Docker Swarm?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Docker Machine and Docker Swarm?
    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.
    Docker
    The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
    boot2docker
    boot2docker is a lightweight Linux distribution based on Tiny Core Linux made specifically to run Docker containers. It runs completely from RAM, weighs ~27MB and boots in ~5s (YMMV).
    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.
    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.
    See all alternatives
    Decisions about Docker Machine and Docker Swarm
    Yshay Yaacobi
    Yshay Yaacobi
    Software Engineer · | 27 upvotes · 267.1K views
    atSolutoSoluto
    Docker Swarm
    Docker Swarm
    Kubernetes
    Kubernetes
    Visual Studio Code
    Visual Studio Code
    Go
    Go
    TypeScript
    TypeScript
    JavaScript
    JavaScript
    C#
    C#
    F#
    F#
    .NET
    .NET

    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
    Interest over time
    Reviews of Docker Machine and Docker Swarm
    No reviews found
    How developers use Docker Machine and Docker Swarm
    Avatar of DNT
    DNT uses Docker MachineDocker Machine

    Crating Docker machines for production and local development.

    Avatar of Walter
    Walter uses Docker MachineDocker Machine

    Management of and deployment to production.

    How much does Docker Machine cost?
    How much does Docker Swarm cost?
    Pricing unavailable
    Pricing unavailable
    News about Docker Machine
    More news