Skip to content

Commit

Permalink
Mark --(add|block)-registry options as experimental
Browse files Browse the repository at this point in the history
These options shall be used at your own risk.

Signed-off-by: Michal Minar <miminar@redhat.com>
  • Loading branch information
Michal Minar committed Jan 29, 2015
1 parent 6a8eb88 commit 95bd20f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contrib/completion/fish/docker.fish
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ function __fish_print_docker_repositories --description 'Print a list of docker
end

# common options
complete -c docker -f -n '__fish_docker_no_subcommand' -l add-registry -d "Each given registry will be queried before a public Docker registry during image pulls or searches. They will be searched in the order given and treated as insecure."
complete -c docker -f -n '__fish_docker_no_subcommand' -l add-registry -d "[EXPERIMENTAL] Each given registry will be queried before a public Docker registry during image pulls or searches. They will be searched in the order given and treated as insecure."
complete -c docker -f -n '__fish_docker_no_subcommand' -l api-enable-cors -d 'Enable CORS headers in the remote API'
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' -l block-registry -d 'Prevent docker daemon from contacting specified registries. Special keyword "public" represents public Docker registry.'
complete -c docker -f -n '__fish_docker_no_subcommand' -l block-registry -d '[EXPERIMENTAL] Prevent docker daemon from contacting specified registries. Special keyword "public" represents public Docker registry.'
complete -c docker -f -n '__fish_docker_no_subcommand' -s D -l debug -d 'Enable debug mode'
complete -c docker -f -n '__fish_docker_no_subcommand' -s d -l daemon -d 'Enable daemon mode'
complete -c docker -f -n '__fish_docker_no_subcommand' -l dns -d 'Force Docker to use specific DNS servers'
Expand Down
4 changes: 2 additions & 2 deletions daemon/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ func (config *Config) InstallFlags() {
opts.DnsSearchListVar(&config.DnsSearch, []string{"-dns-search"}, "Force Docker to use specific DNS search domains")
opts.LabelListVar(&config.Labels, []string{"-label"}, "Set key=value labels to the daemon (displayed in `docker info`)")
config.BlockedRegistries = opts.NewListOpts(registry.ValidateIndexName)
flag.Var(&config.BlockedRegistries, []string{"-block-registry"}, "Prevent Docker daemon from contacting specified registries. Special keyword \"public\" represents public Docker registry.")
flag.Var(&config.BlockedRegistries, []string{"-block-registry"}, "[EXPERIMENTAL] Prevent Docker daemon from contacting specified registries. Special keyword \"public\" represents public Docker registry.")
config.AdditionalRegistries = opts.NewListOpts(registry.ValidateIndexName)
flag.Var(&config.AdditionalRegistries, []string{"-add-registry"}, "Each given registry will be queried before a public Docker registry during image pulls or searches. They will be searched in the order given and treated as insecure.")
flag.Var(&config.AdditionalRegistries, []string{"-add-registry"}, "[EXPERIMENTAL] Each given registry will be queried before a public Docker registry during image pulls or searches. They will be searched in the order given and treated as insecure.")
}

func getDefaultNetworkMtu() int {
Expand Down
4 changes: 2 additions & 2 deletions docs/man/docker.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ unix://[/path/to/socket] to use.
tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd.

**--add-registry**=[]
Each given registry will be queried before a public Docker registry during image pulls or searches. They will be searched in the order given and treated as insecure. Registry mirrors won't apply to them.
**EXPERIMENTAL** Each given registry will be queried before a public Docker registry during image pulls or searches. They will be searched in the order given and treated as insecure. Registry mirrors won't apply to them.

**--api-enable-cors**=*true*|*false*
Enable CORS headers in the remote API. Default is false.
Expand All @@ -47,7 +47,7 @@ unix://[/path/to/socket] to use.
Use the provided CIDR notation address for the dynamically created bridge (docker0); Mutually exclusive of \-b

**--block-registry**=[]
Prevent Docker daemon from contacting specified registries. Special keyword "public" represents public Docker registry.
**EXPERIMENTAL** Prevent Docker daemon from contacting specified registries. Special keyword "public" represents public Docker registry.

**-d**=*true*|*false*
Enable daemon mode. Default is false.
Expand Down

0 comments on commit 95bd20f

Please sign in to comment.