Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add official image for PM2 runtime #3888
This PR add the
Github repo: https://github.com/Unitech/pm2
Checklist for Review
NOTE: This checklist is intended for the use of the Official Images maintainers both to track the status of your PR and to help inform you and others of where we're at. As such, please leave the "checking" of items to the repository maintainers. If there is a point below for which you would like to provide additional information or note completion, please do so by commenting on the PR. Thanks! (and thanks for staying patient with us
We know that currently we use the latest version each time we build the image, and we are looking for solution but since we need the have different image for each
Do someone has an idea on how to handle this without these problems ?
As a Docker user that previously used pm2 outside of containers  I feel like this encourages users to not use Docker in a way Docker is optimized for: Immutable, reproducible containers that run a single atomic service.
The main issue of the PID 1 problem inside containers is easily solved by adding the
All in all I don't really see the benefit in an official pm2 image that after all only saves the user a single
Am I missing something?
 In fact I still do on a machine for a few legacy services.
Using PM2 to run Node.js in production is beneficial for these reasons:
Just to cite some of the key features when using pm2 inside containers (w/o speaking about process files, automatic json logs transposition and so on) and we are moving toward offering more and more features for Node.js users that use containers.
I don't think the "single atomic service" is still a credo at Docker; I let you compare how PHP, Python, Java applications are handled inside containers.
After all it's a question of technical choice. We have a growing user base using Docker & PM2 and we are now doing efforts to answer to the community by offering a good integration with Docker (now there is even a pm2-docker binary that is a pre-configured PM2 for Docker + we built an Docker official image and now there is this PR).
@vmarchaud I think there's been a little misunderstanding here -- @TimWolla is definitely not confused about the benefits of PM2, but on the contrary is a fan (and is actively using it in at least one deployment, from the sounds of it)
The thing @TimWolla is trying to point out is that having a dedicated
There have been other images somewhat similar to what's proposed here, at least in their intended usage, that have since been deprecated.
The most similar that comes to mind is