-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to safely stop the images #989
Comments
See the response on #3730 about why we are going to leave this as it is. Thanks! |
If you're using Alpine Linux (with no bash), you'd want to use this command instead:
|
I came across this problem myself. Another approach, if you don't re-use your containers (e.g. if you use the '--rm' flag) is to specify -P /tmp/rails.pid in the startup command. This means you can run the same Rails app in multiple containers, and the pidfile gets automatically deleted with the container. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
File: compose/rails.md
Unless
Ctrl-C
is not the preferred way to terminate the process, this issue happens 100% of the time (for me*). Per docker/compose#1393, the workaround is to change the command to the following:Would there be any opposition if I were to create a PR which amended this tutorial? If not, would the preference be to A.) update the
command
line directly and remove the note or B.) amend the note to suggest this alternative?* — System/environment specs are as follows (macOS):
The text was updated successfully, but these errors were encountered: