Skip to content

Commit

Permalink
Merge pull request docker#592 from xianlubird/master
Browse files Browse the repository at this point in the history
Update reschedule on node fail
  • Loading branch information
Misty Stanley-Jones authored Nov 18, 2016
2 parents f225403 + ebb924c commit 9b67312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swarm/scheduler/rescheduling.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

0 comments on commit 9b67312

Please sign in to comment.