mirror of https://github.com/docker/docs.git
Update reschedule on node fail
Update reschedule on node fail
This commit is contained in:
parent
089d9100fd
commit
ebb924c362
|
@ -19,7 +19,7 @@ container when a node fails.
|
|||
To set the `on-node-failure` policy with a `reschedule` environment variable:
|
||||
|
||||
```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:
|
||||
|
@ -55,4 +55,4 @@ Failed to start rescheduled container 2362901cb213da321
|
|||
## Related information
|
||||
|
||||
* [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