mirror of https://github.com/docker/docs.git
Merge pull request #592 from xianlubird/master
Update reschedule on node fail
This commit is contained in:
commit
9b67312f10
|
|
@ -19,7 +19,7 @@ container when a node fails.
|
||||||
To set the `on-node-failure` policy with a `reschedule` environment variable:
|
To set the `on-node-failure` policy with a `reschedule` environment variable:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run -d -e "reschedule=on-node-failure" redis
|
$ docker run -d -e "reschedule:on-node-failure" redis
|
||||||
```
|
```
|
||||||
|
|
||||||
To set the same policy with a `com.docker.swarm.reschedule-policies` label:
|
To set the same policy with a `com.docker.swarm.reschedule-policies` label:
|
||||||
|
|
@ -55,4 +55,4 @@ Failed to start rescheduled container 2362901cb213da321
|
||||||
## Related information
|
## Related information
|
||||||
|
|
||||||
* [Apply custom metadata](/engine/userguide/labels-custom-metadata/)
|
* [Apply custom metadata](/engine/userguide/labels-custom-metadata/)
|
||||||
* [Environment variables with run](/engine/reference/run/#env-environment-variables)
|
* [Environment variables with run](/engine/reference/run/#env-environment-variables)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue