From 0473921b3ea1ae2cd95129269aba2b230a09b672 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 7 Jul 2025 20:33:28 +0200 Subject: [PATCH] engine/containers: fix link to restart policies also adding a link for the `--restart` flag Signed-off-by: Sebastiaan van Stijn --- .../engine/containers/start-containers-automatically.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/manuals/engine/containers/start-containers-automatically.md b/content/manuals/engine/containers/start-containers-automatically.md index 213ae635c5..f5a0843629 100644 --- a/content/manuals/engine/containers/start-containers-automatically.md +++ b/content/manuals/engine/containers/start-containers-automatically.md @@ -10,7 +10,7 @@ aliases: - /config/containers/start-containers-automatically/ --- -Docker provides [restart policies](/manuals/engine/containers/run.md#restart-policies---restart) +Docker provides [restart policies](/reference/cli/docker/container/run.md#restart) to control whether your containers start automatically when they exit, or when Docker restarts. Restart policies start linked containers in the correct order. Docker recommends that you use restart policies, and avoid using process @@ -22,7 +22,7 @@ a Docker upgrade, though networking and user input are interrupted. ## Use a restart policy -To configure the restart policy for a container, use the `--restart` flag +To configure the restart policy for a container, use the [`--restart`](/reference/cli/docker/container/run.md#restart) flag when using the `docker run` command. The value of the `--restart` flag can be any of the following: