Need advice about which tool to choose?Ask the StackShare community!
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.
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%.
Pros of Docker Compose
- Multi-container descriptor121
- Fast development environment setup109
- Easy linking of containers76
- Simple yaml configuration66
- Easy setup58
- Yml or yaml format15
- Use Standard Docker API11
- Open source7
- Can choose Discovery Backend4
- Go from template to application in minutes4
- Kubernetes integration3
- Scalable2
- Easy configuration2
- Quick and easy2
Pros of Docker Machine
- Easy docker hosts management12
Sign up to add or upvote prosMake informed product decisions
Cons of Docker Compose
- Tied to single machine9
- Still very volatile, changing syntax often5