Browse code

Update docs based on feedback from review for --restart

Signed-off-by: Michael Crosby <michael@docker.com>

Michael Crosby authored on 2014/08/06 06:40:50
Showing 2 changed files
... ...
@@ -30,6 +30,7 @@ docker-run - Run a command in a new container
30 30
 [**-P**|**--publish-all**[=*false*]]
31 31
 [**-p**|**--publish**[=*[]*]]
32 32
 [**--privileged**[=*false*]]
33
+[**--restart**[=*POLICY*]]
33 34
 [**--rm**[=*false*]]
34 35
 [**--sig-proxy**[=*true*]]
35 36
 [**-t**|**--tty**[=*false*]]
... ...
@@ -1223,7 +1223,7 @@ application change:
1223 1223
 
1224 1224
 #### Restart Policies
1225 1225
 
1226
-Using the `--restart` flag on docker run you can specify a restart policy for 
1226
+Using the `--restart` flag on Docker run you can specify a restart policy for 
1227 1227
 how a container should or should not be restarted on exit.
1228 1228
 
1229 1229
 ** no ** - Do not restart the container when it exits.
... ...
@@ -1232,19 +1232,19 @@ how a container should or should not be restarted on exit.
1232 1232
 
1233 1233
 ** always ** - Always restart the container reguardless of the exit status.
1234 1234
 
1235
-You can also specify the maximum amount of times docker will try to restart the 
1236
-container when using the ** on-failure ** policy.  The default is that docker will try forever to restart the container.
1235
+You can also specify the maximum amount of times Docker will try to restart the 
1236
+container when using the ** on-failure ** policy.  The default is that Docker will try forever to restart the container.
1237 1237
 
1238 1238
     $ sudo docker run --restart=always redis
1239 1239
 
1240
-This will run the redis container with a restart policy of ** always ** so that if 
1241
-the container exits, docker will restart it.
1240
+This will run the `redis` container with a restart policy of ** always ** so that if 
1241
+the container exits, Docker will restart it.
1242 1242
 
1243 1243
     $ sudo docker run --restart=on-failure:10 redis
1244 1244
 
1245
-This will run the redis container with a restart policy of ** on-failure ** and a 
1246
-maximum restart count of 10.  If the redis container exits with a non-zero exit 
1247
-status more than 10 times in a row docker will abort trying to restart the container.
1245
+This will run the `redis` container with a restart policy of ** on-failure ** and a 
1246
+maximum restart count of 10.  If the `redis` container exits with a non-zero exit 
1247
+status more than 10 times in a row Docker will abort trying to restart the container.
1248 1248
 
1249 1249
 ## save
1250 1250