Skip to content

Commit

Permalink
Merge pull request moby#11708 from coolljt0725/add_cgroup_parent_to_b…
Browse files Browse the repository at this point in the history
…ash_completion

Add new docker run option to bash completion
  • Loading branch information
Jessie Frazelle committed Mar 27, 2015
2 parents 221ff36 + 7d70736 commit e3b0014
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion contrib/completion/bash/docker
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ _docker_run() {
--attach -a
--cap-add
--cap-drop
--cgroup-parent
--cidfile
--cpuset
--cpu-shares -c
Expand All @@ -746,7 +747,10 @@ _docker_run() {
--expose
--hostname -h
--ipc
--label -l
--label-file
--link
--log-driver
--lxc-conf
--mac-address
--memory -m
Expand Down Expand Up @@ -798,7 +802,7 @@ _docker_run() {
__docker_capabilities
return
;;
--cidfile|--env-file)
--cidfile|--cgroup-parent|--env-file|--label-file)
_filedir
return
;;
Expand Down Expand Up @@ -850,6 +854,10 @@ _docker_run() {
esac
return
;;
--log-driver)
COMPREPLY=( $( compgen -W "json-file syslog none" -- "$cur") )
return
;;
--net)
case "$cur" in
container:*)
Expand Down

0 comments on commit e3b0014

Please sign in to comment.