Commit Graph

1904 Commits

Author SHA1 Message Date
1dca682bd2 Add bash completion for new docker system command family
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 9e164dedaa
Component: cli
2017-06-02 00:10:29 +00:00
192d15ece1 Add --env-file flag to docker create service
This fix tries to address the issue in 24712 and add
`--env-file` file to `docker create service`.

Related documentation has been updated.

An additional integration has been added.

This fix fixes 24712.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 5acd85c6e8
Component: cli
2017-06-02 00:10:29 +00:00
7fba500014 Move bash completion logic to new subcommand: tag
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 398d4706d3
Component: cli
2017-06-02 00:10:29 +00:00
80bf7faee3 Move bash completion logic to new subcommand: save
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 54bb65787c
Component: cli
2017-06-02 00:10:29 +00:00
b9eea14648 Move bash completion logic to new subcommand: rmi
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 52c1a7ed50
Component: cli
2017-06-02 00:10:29 +00:00
71cc67a754 Move bash completion logic to new subcommand: push
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 509d2cc9b6
Component: cli
2017-06-02 00:10:29 +00:00
2155ce0488 Move bash completion logic to new subcommand: pull
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 3ed53e5641
Component: cli
2017-06-02 00:10:29 +00:00
5b59d25c67 Move bash completion logic to new subcommand: images
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: ff05fa31d5
Component: cli
2017-06-02 00:10:29 +00:00
f47fa461ff Move bash completion logic to new subcommand: load
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: eeae0d4c53
Component: cli
2017-06-02 00:10:29 +00:00
0e73cdf7ff Delegate bash completion for docker {container,image} inspect to parameterized function
In #23614 `docker inspect` was semantically enhanced to inspect "everything".
Therefore moving its logic to `_docker_container_inspect` was not correct.

This commit moves it back to its original top-level location (`_docker_inspect`)
so that it can be called by `_docker_{container,image}_inspect` and others (will
be added in follow-up PRs).
Parameterization was added in order to get caller-specific behavior.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 918ff45c1a
Component: cli
2017-06-02 00:10:29 +00:00
ebf1521740 Move bash completion logic to new subcommand: import
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: e8310f310d
Component: cli
2017-06-02 00:10:29 +00:00
1986761a5c Move bash completion logic to new subcommand: history
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 583bda0896
Component: cli
2017-06-02 00:10:29 +00:00
4cf7607d8d Move bash completion logic to new subcommand: build
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: bd3939dddd
Component: cli
2017-06-02 00:10:28 +00:00
c84c2e463c Add bash completion for new docker image command family
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 3ab25a8ccb
Component: cli
2017-06-02 00:10:28 +00:00
5ef6f17a9d Implementing support for --cpu-rt-period and --cpu-rt-runtime so that
containers may specify these cgroup values at runtime. This will allow
processes to change their priority to real-time within the container
when CONFIG_RT_GROUP_SCHED is enabled in the kernel. See #22380.

Also added sanity checks for the new --cpu-rt-runtime and --cpu-rt-period
flags to ensure that that the kernel supports these features and that
runtime is not greater than period.

Daemon will support a --cpu-rt-runtime flag to initialize the parent
cgroup on startup, this prevents the administrator from alotting runtime
to docker after each restart.

There are additional checks that could be added but maybe too far? Check
parent cgroups to ensure values are <= parent, inspecting rtprio ulimit
and issuing a warning.

Signed-off-by: Erik St. Martin <alakriti@gmail.com>
Upstream-commit: 42ef78911e
Component: cli
2017-06-02 00:10:28 +00:00
fec713dbd4 Add zsh completion for 'dockerd --experimental'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 85fb527cbf
Component: cli
2017-06-02 00:10:28 +00:00
a6e7161261 Typo --ti and missing my_strace_docker_image
Signed-off-by: Leo Gallucci <leo.gallucci@zalando.de>
Upstream-commit: 74e0f7857b
Component: cli
2017-06-02 00:10:28 +00:00
8004b9853e add --network option for docker build
Signed-off-by: sandyskies <chenmingjie0828@163.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: b4f6b6d970
Component: cli
2017-06-02 00:10:28 +00:00
5addbf284f add docker network prune
`docker network prune` prunes unused networks, including overlay ones.
`docker system prune` also prunes unused networks.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Upstream-commit: 8f0be436cd
Component: cli
2017-06-02 00:10:28 +00:00
e9ac4c1692 Add zsh completion for 'dockerd --shutdown-timeout'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 350b1a3f38
Component: cli
2017-06-02 00:10:28 +00:00
a13751fa90 Add zsh completion for 'docker {create,run} --stop-timeout'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: fa8f0cd060
Component: cli
2017-06-02 00:10:28 +00:00
4b10ffabec Add bash completion for dockerd --experimental
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 7414101f3c
Component: cli
2017-06-02 00:10:28 +00:00
4ccf8b5a72 Fix zsh completion for 'docker exec --env'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: add78ffc8a
Component: cli
2017-06-02 00:10:28 +00:00
32d2c358e9 update docs/reference/commandline/network_inspect.md
The following sentences (introduced in v1.11 via #21160) were misleading for Swarm mode services (>= v1.12)

  For networks backed by multi-host network driver, such as Overlay,
  this command also shows the container endpoints in other hosts in the
  cluster. These endpoints are represented as "ep-{endpoint-id}" in the output.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Upstream-commit: a91e31b2df
Component: cli
2017-06-02 00:10:28 +00:00
5b01128cd3 Remove duplicate keys in labels of docker info
This fix tries to address the issue raised in 24392 where
labels with duplicate keys exist in `docker info`, which
contradicts with the specifications in the docs.

The reason for duplicate keys is that labels are stored as
slice of strings in the format of `A=B` (and the input/output).

This fix tries to address this issue by checking conflict
labels when daemon started, and remove duplicate labels (K-V).

The existing `/info` API has not been changed.

An additional integration test has been added to cover the
changes in this fix.

This fix fixes 24392.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 7765e48aaa
Component: cli
2017-06-02 00:10:28 +00:00
7aea692b20 Make experimental a runtime flag
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: 47b507e48a
Component: cli
2017-06-02 00:10:28 +00:00
94ac28a2ac Fix the incorrect links in the document about network and service
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
Upstream-commit: 4df7e0a9fa
Component: cli
2017-06-02 00:10:28 +00:00
9585717058 Update the subtitle for stack ps
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
Upstream-commit: 78b56b5529
Component: cli
2017-06-02 00:10:28 +00:00
106df2cc9f Fix bash completion for docker exec --env
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 04b0779de4
Component: cli
2017-06-02 00:10:28 +00:00
1a07ed1f3c Add force option to service update
Currently, there's no way to restart the tasks of a service without
making an actual change to the service. This leads to us giving awkward
workarounds as in
https://github.com/docker/docker.github.io/pull/178/files, where we tell
people to scale a service up and down to restore balance, or make
unnecessary changes to trigger a restart.

This change adds a --force option to "docker service update", which
forces the service to be updated even if no changes require that.

Since rolling update parameters are respected, the user can use
"docker service --force" to do a rolling restart. For example, the
following is supported:

   docker service update --force --update-parallelism 2 \
   --update-delay 5s myservice

Since the default value of --update-parallelism is 1, the default
behavior is to restart the service one task at a time.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 78c0d50c9f
Component: cli
2017-06-02 00:10:27 +00:00
bdbf35292b Modify the links for docker container commands
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
Upstream-commit: f18c41ee83
Component: cli
2017-06-02 00:10:27 +00:00
e596bf8b11 Move bash completion logic to new subcommand: wait
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 4f4c129973
Component: cli
2017-06-02 00:10:27 +00:00
8c7fd380c8 Move bash completion logic to new subcommand: update
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: d2ef5775b8
Component: cli
2017-06-02 00:10:27 +00:00
d41679a6b8 Move bash completion logic to new subcommand: unpause
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: b8d3d1e6ec
Component: cli
2017-06-02 00:10:27 +00:00
f8721d8330 Move bash completion logic to new subcommand: top
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 28cf2654e7
Component: cli
2017-06-02 00:10:27 +00:00
4eed057d60 Move bash completion logic to new subcommand: stop
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 620d0051c8
Component: cli
2017-06-02 00:10:27 +00:00
a6e576bd3f Move bash completion logic to new subcommand: stats
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 04886bca2f
Component: cli
2017-06-02 00:10:27 +00:00
4482a5552b Move bash completion logic to new subcommand: start
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f58b6746d7
Component: cli
2017-06-02 00:10:27 +00:00
ed642954ab Move bash completion logic to new subcommand: run
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 05656756e6
Component: cli
2017-06-02 00:10:27 +00:00
89b043e80e Move bash completion logic to new subcommand: rm
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 39880d7731
Component: cli
2017-06-02 00:10:27 +00:00
91e9997531 Move bash completion logic to new subcommand: restart
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 2a9e70cf34
Component: cli
2017-06-02 00:10:27 +00:00
20eb486881 Move bash completion logic to new subcommand: port
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f533df0821
Component: cli
2017-06-02 00:10:27 +00:00
aa3a48c359 Move bash completion logic to new subcommand: port
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 120b57a61c
Component: cli
2017-06-02 00:10:27 +00:00
7f9ae43944 Move bash completion logic to new subcommand: pause
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: b659865f57
Component: cli
2017-06-02 00:10:27 +00:00
9e5581fa01 Move bash completion logic to new subcommand: ps
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: adaa718195
Component: cli
2017-06-02 00:10:27 +00:00
09cd45cad5 Move bash completion logic to new subcommand: logs
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: bd996a11a1
Component: cli
2017-06-02 00:10:27 +00:00
d0a00b93a7 Move bash completion logic to new subcommand: kill
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 13fde2b8c5
Component: cli
2017-06-02 00:10:26 +00:00
6356dbb5b9 Move bash completion logic to new subcommand: inspect
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: c2c341f42b
Component: cli
2017-06-02 00:10:26 +00:00
f7455ef6f1 Move bash completion logic to new subcommand: diff
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 4db49a11a5
Component: cli
2017-06-02 00:10:26 +00:00
f49daf60b9 Move bash completion logic to new subcommand: exec
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f560199333
Component: cli
2017-06-02 00:10:26 +00:00