From f42c0ccd0939826aecc1782bc7db89a722627801 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 3 Jan 2025 21:26:00 +0100 Subject: [PATCH] contrib/completion: remove deprecated --api-cors-header This flag was deprecated in docker v27.0, and removed in v28.0 (producing and error). Signed-off-by: Sebastiaan van Stijn --- contrib/completion/bash/docker | 1 - contrib/completion/fish/docker.fish | 1 - contrib/completion/zsh/_docker | 1 - 3 files changed, 3 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 4c6235211ce8..f6cd469b3135 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2552,7 +2552,6 @@ _docker_daemon() { $global_options_with_args --add-runtime --allow-nondistributable-artifacts - --api-cors-header --authorization-plugin --bip --bridge -b diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index 508a0c8b8731..10d72f28b5f3 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -82,7 +82,6 @@ function __fish_print_docker_repositories --description 'Print a list of docker end # common options -complete -c docker -f -n '__fish_docker_no_subcommand' -l api-cors-header -d "Set CORS headers in the Engine API. Default is cors disabled" complete -c docker -f -n '__fish_docker_no_subcommand' -s b -l bridge -d 'Attach containers to a pre-existing network bridge' complete -c docker -f -n '__fish_docker_no_subcommand' -l bip -d "Use this CIDR notation address for the network bridge's IP, not compatible with -b" complete -c docker -f -n '__fish_docker_no_subcommand' -s D -l debug -d 'Enable debug mode' diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index f4d538a3dffd..27a3b92962ee 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -2727,7 +2727,6 @@ __docker_subcommand() { $opts_help \ "($help)*--add-runtime=[Register an additional OCI compatible runtime]:runtime:__docker_complete_runtimes" \ "($help)*--allow-nondistributable-artifacts=[Push nondistributable artifacts to specified registries]:registry: " \ - "($help)--api-cors-header=[CORS headers in the Engine API]:CORS headers: " \ "($help)*--authorization-plugin=[Authorization plugins to load]" \ "($help -b --bridge)"{-b=,--bridge=}"[Attach containers to a network bridge]:bridge:_net_interfaces" \ "($help)--bip=[Network bridge IP]:IP address: " \