Docker Compose vs Docker Machine

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

Docker Compose

16.7K
12.5K
+ 1
480
Docker Machine

428
497
+ 1
12
Add tool

Docker Compose vs Docker Machine: What are the differences?

Developers describe Docker Compose as "Define and run multi-container applications with Docker". 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. On the other hand, Docker Machine is detailed as "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 Compose and Docker Machine belong to "Container Tools" category of the tech stack.

"Multi-container descriptor" is the top reason why over 111 developers like Docker Compose, while over 12 developers mention "Easy docker hosts management" as the leading cause for choosing Docker Machine.

Docker Compose and Docker Machine are both open source tools. It seems that Docker Compose with 16.4K GitHub stars and 2.52K forks on GitHub has more adoption than Docker Machine with 5.37K GitHub stars and 1.55K GitHub forks.

According to the StackShare community, Docker Compose has a broader approval, being mentioned in 787 company stacks & 608 developers stacks; compared to Docker Machine, which is listed in 43 company stacks and 46 developer stacks.

Decisions about Docker Compose and Docker Machine
Michael Roberts

We develop rapidly with docker-compose orchestrated services, however, for production - we utilise the very best ideas that Kubernetes has to offer: SCALE! We can scale when needed, setting a maximum and minimum level of nodes for each application layer - scaling only when the load balancer needs it. This allowed us to reduce our devops costs by 40% whilst also maintaining an SLA of 99.87%.

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Docker Compose
Pros of Docker Machine
  • 121
    Multi-container descriptor
  • 109
    Fast development environment setup
  • 76
    Easy linking of containers
  • 66
    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
  • 3
    Kubernetes integration
  • 2
    Scalable
  • 2
    Easy configuration
  • 2
    Quick and easy
  • 12
    Easy docker hosts management

Sign up to add or upvote prosMake informed product decisions

Cons of Docker Compose
Cons of Docker Machine
  • 9
    Tied to single machine
  • 5
    Still very volatile, changing syntax often
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    What is 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.

    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.

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

    What companies use Docker Compose?
    What companies use Docker Machine?
    See which teams inside your own company are using Docker Compose or Docker Machine.
    Sign up for Private StackShareLearn More

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

    What tools integrate with Docker Compose?
    What tools integrate with Docker Machine?

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

    Blog Posts

    GitHubPythonNode.js+47
    52
    70287
    JavaScriptGitHubNode.js+26
    19
    4718
    JavaScriptGitHubPython+42
    52
    20330
    What are some alternatives to Docker Compose and Docker Machine?
    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.
    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
    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.
    Helm
    Helm is the best way to find, share, and use software built for Kubernetes.
    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.
    See all alternatives