From d281b72a9890d2085d9c3b700db291039e970765 Mon Sep 17 00:00:00 2001 From: Lydell Manganti Date: Wed, 28 Feb 2018 20:56:19 +1000 Subject: [PATCH] Update run.md --restart to include unless-stopped Update --restart option to include unless-stopped to be consistent with https://docs.docker.com/config/containers/start-containers-automatically/#use-a-restart-policy Signed-off-by: Lydell Manganti --- docs/reference/commandline/run.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/commandline/run.md b/docs/reference/commandline/run.md index 4ec793a217..da5254475e 100644 --- a/docs/reference/commandline/run.md +++ b/docs/reference/commandline/run.md @@ -592,6 +592,7 @@ Docker supports the following restart policies: |:---------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `no` | Do not automatically restart the container when it exits. This is the default. | | `on-failure[:max-retries]` | Restart only if the container exits with a non-zero exit status. Optionally, limit the number of restart retries the Docker daemon attempts. | +| `unless-stopped` | Restart the container unless it is explicitly stopped or Docker itself is stopped or restarted. | | `always` | Always restart the container regardless of the exit status. When you specify always, the Docker daemon will try to restart the container indefinitely. The container will also always start on daemon startup, regardless of the current state of the container. | ```bash