Merge pull request #19098 from albers/completion--isolation
bash completion for `--isolation` Upstream-commit: 9819a9db208633c511167d42407e4e53f22e4aef Component: engine
This commit is contained in:
@ -340,6 +340,10 @@ __docker_complete_capabilities() {
|
||||
" -- "$cur" ) )
|
||||
}
|
||||
|
||||
__docker_complete_isolation() {
|
||||
COMPREPLY=( $( compgen -W "default hyperv process" -- "$cur" ) )
|
||||
}
|
||||
|
||||
__docker_complete_log_drivers() {
|
||||
COMPREPLY=( $( compgen -W "
|
||||
awslogs
|
||||
@ -532,6 +536,7 @@ _docker_build() {
|
||||
--cpu-period
|
||||
--cpu-quota
|
||||
--file -f
|
||||
--isolation
|
||||
--memory -m
|
||||
--memory-swap
|
||||
--tag -t
|
||||
@ -560,6 +565,10 @@ _docker_build() {
|
||||
_filedir
|
||||
return
|
||||
;;
|
||||
--isolation)
|
||||
__docker_complete_isolation
|
||||
return
|
||||
;;
|
||||
--tag|-t)
|
||||
__docker_complete_image_repos_and_tags
|
||||
return
|
||||
@ -1455,6 +1464,7 @@ _docker_run() {
|
||||
--group-add
|
||||
--hostname -h
|
||||
--ipc
|
||||
--isolation
|
||||
--kernel-memory
|
||||
--label-file
|
||||
--label -l
|
||||
@ -1560,6 +1570,10 @@ _docker_run() {
|
||||
esac
|
||||
return
|
||||
;;
|
||||
--isolation)
|
||||
__docker_complete_isolation
|
||||
return
|
||||
;;
|
||||
--link)
|
||||
case "$cur" in
|
||||
*:*)
|
||||
|
||||
Reference in New Issue
Block a user