From 1df656a2f08660a7c6b02fa909c77fdf5182db79 Mon Sep 17 00:00:00 2001 From: David Beitey Date: Sun, 25 Mar 2018 14:14:12 +0000 Subject: [PATCH] Clarify behaviour of restart policy in run ref doc This clarifies that the behaviour of `unless-stopped` will restart the container on daemon start. This was implied before, but now the restart-on-daemon-start behaviour is mentioned directly. Signed-off-by: David Beitey (cherry picked from commit 8ca237054f13c585ce5880c2c193d106ac22c9cd) Signed-off-by: Sebastiaan van Stijn --- components/cli/docs/reference/run.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/cli/docs/reference/run.md b/components/cli/docs/reference/run.md index 5c393d60cf..3a6bf5b662 100644 --- a/components/cli/docs/reference/run.md +++ b/components/cli/docs/reference/run.md @@ -525,9 +525,9 @@ Docker supports the following restart policies: unless-stopped - Always restart the container regardless of the exit status, but - do not start it on daemon startup if the container has been put - to a stopped state before. + Always restart the container regardless of the exit status, + including on daemon startup, except if the container was put + into a stopped state before the Docker daemon was stopped.