mirror of https://github.com/docker/cli.git
Remove --name flag from service update
The --name flag was inadvertently added to docker service update, but is not supported, as it has various side-effects (e.g., existing tasks are not renamed). This removes the flag from the service update command. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
bce3414931
commit
6fbb9227cb
|
@ -2576,7 +2576,6 @@ _docker_service_update() {
|
||||||
--log-driver
|
--log-driver
|
||||||
--log-opt
|
--log-opt
|
||||||
--mount
|
--mount
|
||||||
--name
|
|
||||||
--network
|
--network
|
||||||
--publish -p
|
--publish -p
|
||||||
--replicas
|
--replicas
|
||||||
|
@ -2608,6 +2607,7 @@ _docker_service_update() {
|
||||||
options_with_args="$options_with_args
|
options_with_args="$options_with_args
|
||||||
--container-label
|
--container-label
|
||||||
--mode
|
--mode
|
||||||
|
--name
|
||||||
"
|
"
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
|
|
|
@ -1095,7 +1095,6 @@ __docker_service_subcommand() {
|
||||||
"($help)--log-driver=[Logging driver for service]:logging driver:__docker_log_drivers"
|
"($help)--log-driver=[Logging driver for service]:logging driver:__docker_log_drivers"
|
||||||
"($help)*--log-opt=[Logging driver options]:log driver options:__docker_log_options"
|
"($help)*--log-opt=[Logging driver options]:log driver options:__docker_log_options"
|
||||||
"($help)*--mount=[Attach a mount to the service]:mount: "
|
"($help)*--mount=[Attach a mount to the service]:mount: "
|
||||||
"($help)--name=[Service name]:name: "
|
|
||||||
"($help)*--network=[Network attachments]:network: "
|
"($help)*--network=[Network attachments]:network: "
|
||||||
"($help)*"{-p=,--publish=}"[Publish a port as a node port]:port: "
|
"($help)*"{-p=,--publish=}"[Publish a port as a node port]:port: "
|
||||||
"($help)--replicas=[Number of tasks]:replicas: "
|
"($help)--replicas=[Number of tasks]:replicas: "
|
||||||
|
@ -1123,6 +1122,7 @@ __docker_service_subcommand() {
|
||||||
$opts_create_update \
|
$opts_create_update \
|
||||||
"($help)*--container-label=[Container labels]:label: " \
|
"($help)*--container-label=[Container labels]:label: " \
|
||||||
"($help)--mode=[Service Mode]:mode:(global replicated)" \
|
"($help)--mode=[Service Mode]:mode:(global replicated)" \
|
||||||
|
"($help)--name=[Service name]:name: " \
|
||||||
"($help -): :__docker_images" \
|
"($help -): :__docker_images" \
|
||||||
"($help -):command: _command_names -e" \
|
"($help -):command: _command_names -e" \
|
||||||
"($help -)*::arguments: _normal" && ret=0
|
"($help -)*::arguments: _normal" && ret=0
|
||||||
|
|
|
@ -42,7 +42,6 @@ Options:
|
||||||
--log-opt value Logging driver options (default [])
|
--log-opt value Logging driver options (default [])
|
||||||
--mount-add value Add or update a mount on a service
|
--mount-add value Add or update a mount on a service
|
||||||
--mount-rm value Remove a mount by its target path (default [])
|
--mount-rm value Remove a mount by its target path (default [])
|
||||||
--name string Service name
|
|
||||||
--publish-add value Add or update a published port (default [])
|
--publish-add value Add or update a published port (default [])
|
||||||
--publish-rm value Remove a published port by its target port (default [])
|
--publish-rm value Remove a published port by its target port (default [])
|
||||||
--replicas value Number of tasks (default none)
|
--replicas value Number of tasks (default none)
|
||||||
|
|
Loading…
Reference in New Issue