-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
docker run --rm
incompatible with restart: always
#1218
Comments
It also affects linked containers. For example:
Will start but not stop |
Duplicate of #1013 I think |
Yes looks like almost duplicate but without requiring any |
1+ the current behavior is bad and not that intuitive. |
I think it has been fixed in 1.3. |
On Wed, 24 Jun 2015 at 11:30 Samuel Ytterbrink notifications@github.com
|
this was fixed in #1205 |
Having a
docker-compose.yml
withrestart: always
is good for services started bydocker up
. However when executing commands during a build or during development viadocker run --rm ...
it'll also restart that container and this command will loop forever.--restart never
fordocker run
but that's edge.restart:
duringdocker-compose run ...
commands, only use it fordocker-compose start
ordocker-compose up
restart: always
. This would also fix the issue as one could do:Then a
docker-compose run --rm php ...
would not restart this command, but adocker-compose up service
would start and restart all linked services.The text was updated successfully, but these errors were encountered: