Skip to content

Commit

Permalink
Merge pull request docker#236 from mstanleyjones/swarm_typo
Browse files Browse the repository at this point in the history
Fix typo in Swarm scheduling doc
  • Loading branch information
johndmulhausen authored Oct 18, 2016
2 parents 0e2e41f + 86fca1c commit e8d935a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions swarm/scheduler/rescheduling.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
description: Swarm rescheduling
keywords:
- docker, swarm, clustering, rescheduling
menu:
main:
parent: swarm_sched
weight: 6
title: Rescheduling
---

# Swarm Rescheduling

You can set recheduling policies with Docker Swarm. A rescheduling policy
You can set rescheduling policies with Docker Swarm. A rescheduling policy
determines what the Swarm scheduler does for containers when the nodes they are
running on fail.

Expand All @@ -26,7 +22,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 All @@ -40,22 +36,22 @@ $ docker run -d -l 'com.docker.swarm.reschedule-policies=["on-node-failure"]' re
You can use the `docker logs` command to review the rescheduled container
actions. To do this, use the following command syntax:

```
```bash
docker logs SWARM_MANAGER_CONTAINER_ID
```

When a container is successfully rescheduled, it generates a message similar to
the following:

```
```no-highlight
Rescheduled container 2536adb23 from node-1 to node-2 as 2362901cb213da321
Container 2536adb23 was running, starting container 2362901cb213da321
```

If for some reason, the new container fails to start on the new node, the log
contains:

```
```no-highlight
Failed to start rescheduled container 2362901cb213da321
```

Expand Down

0 comments on commit e8d935a

Please sign in to comment.