1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

bash completion for --isolation

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-01-05 09:53:16 -08:00
parent fd1afe1d59
commit 9e624d3250

View file

@ -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
*:*)