From 4d5c70525e0b55ccf9a8664959aa7b439d2805b0 Mon Sep 17 00:00:00 2001 From: Beni Rupp <35852798+BeniRupp@users.noreply.github.com> Date: Fri, 8 May 2020 08:23:06 +0200 Subject: [PATCH] Add description for unless-stopped restart policy --- compose/compose-file/index.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compose/compose-file/index.md b/compose/compose-file/index.md index 8411ba9e66..7e01148981 100644 --- a/compose/compose-file/index.md +++ b/compose/compose-file/index.md @@ -1683,10 +1683,11 @@ ports: ### restart -`no` is the default restart policy, and it does not restart a container under +`no` is the default [restart policy](../../config/containers/start-containers-automatically.md#use-a-restart-policy), and it does not restart a container under any circumstance. When `always` is specified, the container always restarts. The `on-failure` policy restarts a container if the exit code indicates an -on-failure error. +on-failure error. `unless-stopped` always restarts a container, except when the +container is stopped (manually or otherwise). restart: "no" restart: always