mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #30283 from albers/completion-run--init-path
Add bash completion and docs for `docker run|create --init-path`
This commit is contained in:
commit
b13ecbc7b5
4 changed files with 15 additions and 2 deletions
|
@ -1345,6 +1345,7 @@ _docker_container_run() {
|
||||||
--expose
|
--expose
|
||||||
--group-add
|
--group-add
|
||||||
--hostname -h
|
--hostname -h
|
||||||
|
--init-path
|
||||||
--ip
|
--ip
|
||||||
--ip6
|
--ip6
|
||||||
--ipc
|
--ipc
|
||||||
|
@ -1461,7 +1462,7 @@ _docker_container_run() {
|
||||||
__docker_complete_capabilities_droppable
|
__docker_complete_capabilities_droppable
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
--cidfile|--env-file|--label-file)
|
--cidfile|--env-file|--init-path|--label-file)
|
||||||
_filedir
|
_filedir
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -63,6 +63,8 @@ Options:
|
||||||
--health-timeout duration Maximum time to allow one check to run (ns|us|ms|s|m|h) (default 0s)
|
--health-timeout duration Maximum time to allow one check to run (ns|us|ms|s|m|h) (default 0s)
|
||||||
--help Print usage
|
--help Print usage
|
||||||
-h, --hostname string Container host name
|
-h, --hostname string Container host name
|
||||||
|
--init Run an init inside the container that forwards signals and reaps processes
|
||||||
|
--init-path string Path to the docker-init binary
|
||||||
-i, --interactive Keep STDIN open even if not attached
|
-i, --interactive Keep STDIN open even if not attached
|
||||||
--io-maxbandwidth string Maximum IO bandwidth limit for the system drive (Windows only)
|
--io-maxbandwidth string Maximum IO bandwidth limit for the system drive (Windows only)
|
||||||
--io-maxiops uint Maximum IOps limit for the system drive (Windows only)
|
--io-maxiops uint Maximum IOps limit for the system drive (Windows only)
|
||||||
|
|
|
@ -67,6 +67,8 @@ Options:
|
||||||
--health-timeout duration Maximum time to allow one check to run (ns|us|ms|s|m|h) (default 0s)
|
--health-timeout duration Maximum time to allow one check to run (ns|us|ms|s|m|h) (default 0s)
|
||||||
--help Print usage
|
--help Print usage
|
||||||
-h, --hostname string Container host name
|
-h, --hostname string Container host name
|
||||||
|
--init Run an init inside the container that forwards signals and reaps processes
|
||||||
|
--init-path string Path to the docker-init binary
|
||||||
-i, --interactive Keep STDIN open even if not attached
|
-i, --interactive Keep STDIN open even if not attached
|
||||||
--io-maxbandwidth string Maximum IO bandwidth limit for the system drive (Windows only)
|
--io-maxbandwidth string Maximum IO bandwidth limit for the system drive (Windows only)
|
||||||
(Windows only). The format is `<number><unit>`.
|
(Windows only). The format is `<number><unit>`.
|
||||||
|
|
|
@ -41,6 +41,8 @@ docker-run - Run a command in a new container
|
||||||
[**--group-add**[=*[]*]]
|
[**--group-add**[=*[]*]]
|
||||||
[**-h**|**--hostname**[=*HOSTNAME*]]
|
[**-h**|**--hostname**[=*HOSTNAME*]]
|
||||||
[**--help**]
|
[**--help**]
|
||||||
|
[**--init**]
|
||||||
|
[**--init-path**[=*[]*]]
|
||||||
[**-i**|**--interactive**]
|
[**-i**|**--interactive**]
|
||||||
[**--ip**[=*IPv4-ADDRESS*]]
|
[**--ip**[=*IPv4-ADDRESS*]]
|
||||||
[**--ip6**[=*IPv6-ADDRESS*]]
|
[**--ip6**[=*IPv6-ADDRESS*]]
|
||||||
|
@ -309,7 +311,13 @@ redirection on the host system.
|
||||||
Sets the container host name that is available inside the container.
|
Sets the container host name that is available inside the container.
|
||||||
|
|
||||||
**--help**
|
**--help**
|
||||||
Print usage statement
|
Print usage statement
|
||||||
|
|
||||||
|
**--init**
|
||||||
|
Run an init inside the container that forwards signals and reaps processes
|
||||||
|
|
||||||
|
**--init-path**=""
|
||||||
|
Path to the docker-init binary
|
||||||
|
|
||||||
**-i**, **--interactive**=*true*|*false*
|
**-i**, **--interactive**=*true*|*false*
|
||||||
Keep STDIN open even if not attached. The default is *false*.
|
Keep STDIN open even if not attached. The default is *false*.
|
||||||
|
|
Loading…
Add table
Reference in a new issue