Explorar o código

Update restart description

add a note around restart policies only working in detached mode

Signed-off-by: Aidan Feldman <aidan.feldman@gmail.com>

Update restart description with Mary's comments.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Aidan Feldman %!s(int64=9) %!d(string=hai) anos
pai
achega
c32ec8b93b
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      docs/reference/run.md

+ 4 - 3
docs/reference/run.md

@@ -504,9 +504,10 @@ Or, to get the last time the container was (re)started;
     $ docker inspect -f "{{ .State.StartedAt }}" my-container
     $ docker inspect -f "{{ .State.StartedAt }}" my-container
     # 2015-03-04T23:47:07.691840179Z
     # 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
 ### Examples