From 8ca237054f13c585ce5880c2c193d106ac22c9cd 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 --- docs/reference/run.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/run.md b/docs/reference/run.md index 5c393d60cf..3a6bf5b662 100644 --- a/docs/reference/run.md +++ b/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.