mirror of https://github.com/docker/docs.git
Add description for unless-stopped restart policy
This commit is contained in:
parent
1afc58ea2b
commit
4d5c70525e
|
@ -1683,10 +1683,11 @@ ports:
|
||||||
|
|
||||||
### restart
|
### 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
|
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` 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: "no"
|
||||||
restart: always
|
restart: always
|
||||||
|
|
Loading…
Reference in New Issue