Service create --group param
--group-add was used for specifying groups for both service create and service update. For create it was confusing since we don't have an existing set of groups. Instead I added --group to create, and moved --group-add to service update only, like --group-rm This deals with issue 27646 Signed-off-by: Lily Guo <lily.guo@docker.com> Update flag documentation Specify that --group, --group-add and --groupd-rm refers to supplementary user groups Signed-off-by: Lily Guo <lily.guo@docker.com> Fix docs for groups and update completion scripts Signed-off-by: Lily Guo <lily.guo@docker.com> Upstream-commit: 2f58494ae6e796325329f849cf547bcf94bb68e3 Component: engine
This commit is contained in:
@ -26,7 +26,7 @@ Options:
|
||||
--endpoint-mode string Endpoint mode (vip or dnsrr)
|
||||
-e, --env value Set environment variables (default [])
|
||||
--env-file value Read in a file of environment variables (default [])
|
||||
--group-add value Add additional user groups to the container (default [])
|
||||
--group value Set one or more supplementary user groups for the container (default [])
|
||||
--health-cmd string Command to run to check health
|
||||
--health-interval duration Time between running the check
|
||||
--health-retries int Consecutive failures needed to report unhealthy
|
||||
|
||||
@ -30,8 +30,8 @@ Options:
|
||||
--env-add value Add or update environment variables (default [])
|
||||
--env-rm value Remove an environment variable (default [])
|
||||
--force Force update even if no changes require it
|
||||
--group-add value Add additional user groups to the container (default [])
|
||||
--group-rm value Remove previously added user groups from the container (default [])
|
||||
--group-add value Add additional supplementary user groups to the container (default [])
|
||||
--group-rm value Remove previously added supplementary user groups from the container (default [])
|
||||
--health-cmd string Command to run to check health
|
||||
--health-interval duration Time between running the check
|
||||
--health-retries int Consecutive failures needed to report unhealthy
|
||||
|
||||
Reference in New Issue
Block a user