Merge pull request #10774 from BeniRupp/patch-1

Add description for unless-stopped restart policy
This commit is contained in:
Sebastiaan van Stijn 2020-06-25 11:11:49 +02:00 committed by GitHub
commit e3b9c741d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1689,10 +1689,11 @@ ports:
### restart
`no` is the default restart policy, and it does not restart a container under
`no` is the default [restart policy](../../config/containers/start-containers-automatically.md#use-a-restart-policy), and it does not restart a container under
any circumstance. When `always` is specified, the container always restarts. The
`on-failure` policy restarts a container if the exit code indicates an
on-failure error.
on-failure error. `unless-stopped` always restarts a container, except when the
container is stopped (manually or otherwise).
restart: "no"
restart: always