Need advice about which tool to choose?Ask the StackShare community!
Docker vs PM2: What are the differences?
Docker: Enterprise Container Platform for High-Velocity Innovation. 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; PM2: Ease-to-use Node.js process manager, like forever. Production process manager for Node.js apps with a built-in load balancer.
Docker and PM2 are primarily classified as "Virtual Machine Platforms & Containers" and "Node.js Process Manager" tools respectively.
"Rapid integration and build up" is the primary reason why developers consider Docker over the competitors, whereas "Reliable" was stated as the key factor in picking PM2.
Docker and PM2 are both open source tools. Docker with 54K GitHub stars and 15.6K forks on GitHub appears to be more popular than PM2 with 29.7K GitHub stars and 1.99K GitHub forks.
Spotify, Pinterest, and Twitter are some of the popular companies that use Docker, whereas PM2 is used by Publitas, CybrHome, and Code Foundries. Docker has a broader approval, being mentioned in 3527 company stacks & 3449 developers stacks; compared to PM2, which is listed in 52 company stacks and 19 developer stacks.
lxd/lxc and Docker aren't congruent so this comparison needs a more detailed look; but in short I can say: the lxd-integrated administration of storage including zfs with its snapshot capabilities as well as the system container (multi-process) approach of lxc vs. the limited single-process container approach of Docker is the main reason I chose lxd over Docker.
Pros of Docker
- Rapid integration and build up823
- Isolation689
- Open source519
- Testability and reproducibility505
- Lightweight459
- Standardization217
- Scalable184
- Upgrading / downgrading / application versions105
- Security87
- Private paas environments84
- Portability33
- Limit resource usage25
- Game changer16
- I love the way docker has changed virtualization15
- Fast13
- Concurrency11
- Docker's Compose tools7
- Easy setup5
- Fast and Portable5
- Because its fun4
- Makes shipping to production very simple3
- It's dope2
- Highly useful2
- Very easy to setup integrate and build1
- Package the environment with the application1
- Does a nice job hogging memory1
- Open source and highly configurable1
- Simplicity, isolation, resource effective1
- MacOS support FAKE1
- Its cool1
- Docker hub for the FTW1
- HIgh Throughput1
Pros of PM2
- Reliable12
- Easy to manage9
- Easy to use2
Sign up to add or upvote prosMake informed product decisions
Cons of Docker
- New versions == broken features8
- Unreliable networking6
- Documentation not always in sync6
- Moves quickly4
- Not Secure3
Cons of PM2
- Memory leak5