Skip to content

Commit

Permalink
Update restart description
Browse files Browse the repository at this point in the history
add a note around restart policies only working in detached mode

Signed-off-by: Aidan Feldman <[email protected]>

Update restart description with Mary's comments.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
afeld authored and thaJeztah committed Dec 20, 2015
1 parent 91b56a7 commit c32ec8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/reference/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,10 @@ Or, to get the last time the container was (re)started;
$ docker inspect -f "{{ .State.StartedAt }}" my-container
# 2015-03-04T23:47:07.691840179Z

You cannot set any restart policy in combination with
["clean up (--rm)"](#clean-up-rm). Setting both `--restart` and `--rm`
results in an error.

Combining `--restart` (restart policy) with the `--rm` (clean up) flag results
in an error. On container restart, attached clients are disconnected. See the
examples on using the [`--rm` (clean up)](#clean-up-rm) flag later in this page.

### Examples

Expand Down

0 comments on commit c32ec8b

Please sign in to comment.