mirror of https://github.com/docker/docs.git
Merge pull request #18813 from thaJeztah/update-restart-description
(carry 18273) update description for restart policies
This commit is contained in:
commit
4f9ed6164d
|
|
@ -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`
|
Combining `--restart` (restart policy) with the `--rm` (clean up) flag results
|
||||||
results in an error.
|
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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue