From ead81f511cd884403e9dcefe397f7be3ac4c38f5 Mon Sep 17 00:00:00 2001 From: Bret Fisher Date: Thu, 18 Jan 2018 12:40:52 -0500 Subject: [PATCH] Add restart to options not supported in stacks (#5680) - added restart to list of sub-options not supported in stack deploy - added note to the bottom of restart description that it isn't supported in stack deploy, and to use restart_policy instead. --- compose/compose-file/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compose/compose-file/index.md b/compose/compose-file/index.md index 61670fa532..29c6811f00 100644 --- a/compose/compose-file/index.md +++ b/compose/compose-file/index.md @@ -787,6 +787,7 @@ The following sub-options (supported for `docker compose up` and `docker compose - [external_links](#external_links) - [links](#links) - [network_mode](#network_mode) +- [restart](#restart) - [security_opt](#security_opt) - [stop_signal](#stop_signal) - [sysctls](#sysctls) @@ -1772,6 +1773,10 @@ on-failure error. restart: always restart: on-failure restart: unless-stopped + +> **Note**: This option is ignored when +> [deploying a stack in swarm mode](/engine/reference/commandline/stack_deploy.md) +> with a (version 3) Compose file. Use [restart_policy](#restart_policy) instead. ### domainname, hostname, ipc, mac\_address, privileged, read\_only, shm\_size, stdin\_open, tty, user, working\_dir