|
@@ -244,6 +244,18 @@ _docker_events()
|
|
esac
|
|
esac
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+_docker_exec()
|
|
|
|
+{
|
|
|
|
+ case "$cur" in
|
|
|
|
+ -*)
|
|
|
|
+ COMPREPLY=( $( compgen -W "-d --detach -i --interactive -t --tty" -- "$cur" ) )
|
|
|
|
+ ;;
|
|
|
|
+ *)
|
|
|
|
+ __docker_containers_running
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+}
|
|
|
|
+
|
|
_docker_export()
|
|
_docker_export()
|
|
{
|
|
{
|
|
local counter=$(__docker_pos_first_nonflag)
|
|
local counter=$(__docker_pos_first_nonflag)
|
|
@@ -530,7 +542,7 @@ _docker_run()
|
|
esac
|
|
esac
|
|
return
|
|
return
|
|
;;
|
|
;;
|
|
- --entrypoint|-h|--hostname|-m|--memory|-u|--user|-w|--workdir|-c|--cpu-shares|-n|--name|-p|--publish|--expose|--dns|--lxc-conf)
|
|
|
|
|
|
+ --entrypoint|-h|--hostname|-m|--memory|-u|--user|-w|--workdir|--cpuset|-c|--cpu-shares|-n|--name|-p|--publish|--expose|--dns|--lxc-conf)
|
|
return
|
|
return
|
|
;;
|
|
;;
|
|
*)
|
|
*)
|
|
@@ -539,10 +551,10 @@ _docker_run()
|
|
|
|
|
|
case "$cur" in
|
|
case "$cur" in
|
|
-*)
|
|
-*)
|
|
- COMPREPLY=( $( compgen -W "--rm -d --detach -n --networking --privileged -P --publish-all -i --interactive -t --tty --cidfile --entrypoint -h --hostname -m --memory -u --user -w --workdir -c --cpu-shares --sig-proxy --name -a --attach -v --volume --link -e --env -p --publish --expose --dns --volumes-from --lxc-conf" -- "$cur" ) )
|
|
|
|
|
|
+ COMPREPLY=( $( compgen -W "--rm -d --detach -n --networking --privileged -P --publish-all -i --interactive -t --tty --cidfile --entrypoint -h --hostname -m --memory -u --user -w --workdir --cpuset -c --cpu-shares --sig-proxy --name -a --attach -v --volume --link -e --env -p --publish --expose --dns --volumes-from --lxc-conf" -- "$cur" ) )
|
|
;;
|
|
;;
|
|
*)
|
|
*)
|
|
- local counter=$(__docker_pos_first_nonflag '--cidfile|--volumes-from|-v|--volume|-e|--env|--entrypoint|-h|--hostname|-m|--memory|-u|--user|-w|--workdir|-c|--cpu-shares|-n|--name|-a|--attach|--link|-p|--publish|--expose|--dns|--lxc-conf')
|
|
|
|
|
|
+ local counter=$(__docker_pos_first_nonflag '--cidfile|--volumes-from|-v|--volume|-e|--env|--entrypoint|-h|--hostname|-m|--memory|-u|--user|-w|--workdir|--cpuset|-c|--cpu-shares|-n|--name|-a|--attach|--link|-p|--publish|--expose|--dns|--lxc-conf')
|
|
|
|
|
|
if [ $cword -eq $counter ]; then
|
|
if [ $cword -eq $counter ]; then
|
|
__docker_image_repos_and_tags_and_ids
|
|
__docker_image_repos_and_tags_and_ids
|
|
@@ -660,6 +672,7 @@ _docker()
|
|
cp
|
|
cp
|
|
diff
|
|
diff
|
|
events
|
|
events
|
|
|
|
+ exec
|
|
export
|
|
export
|
|
history
|
|
history
|
|
images
|
|
images
|