Commit graph

2041 commits

Author SHA1 Message Date
Sebastiaan van Stijn
e2de212339 Merge pull request #28634 from ghostplant/check_cfg_memsw
Checking whether CG_MEM_SWAP is enabled at the moment.
2017-01-27 10:49:32 +01:00
unclejack
b6e2703230 Dockerfile*: bump Go to 1.7.5
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
2017-01-27 02:14:36 +02:00
Kenfe-Mickaël Laventure
cd7f3e7f9a Merge pull request #30438 from albers/completion-windows-specific
Add windows specific bash completion for `docker run|create|build`
2017-01-26 14:25:35 -08:00
Tianon Gravi
356dc712a6 Update "download-frozen-image-v2.sh" for schemaVersion 2
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
2017-01-26 11:08:28 -08:00
Harald Albers
5a067e5255 Use native call for listing plugins in bash completion
`docker plugin ls` now has `--format`, so there is no more need for
postprocessing raw `docker plugin ls` output with `awk` any more.
This will make generation of plugin lists robust against changes
in `docker plugin ls` output.

Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-26 17:33:43 +01:00
Kenfe-Mickael Laventure
1756af6faf Allow adding rules to cgroup devices.allow on container create/run
This introduce a new `--device-cgroup-rule` flag that allow a user to
add one or more entry to the container cgroup device `devices.allow`

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-01-26 07:20:45 -08:00
Harald Albers
93e43b42be Rename helper function in bash completion for consistency
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-25 15:55:04 -08:00
Harald Albers
fceaae95b5 Hide bash completion for docker run|create|build --isolation on non-windows
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-25 15:55:04 -08:00
Kenfe-Mickaël Laventure
db657a558e Merge pull request #30376 from albers/completion-fix-node-list
Fix bash completion for completing nodes
2017-01-25 11:52:13 -08:00
Harald Albers
926fa56c0d Add bash completion for docker checkpoint
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-25 12:55:56 +01:00
Harald Albers
f2ee29ed96 Add windows specific bash completion for docker run|create
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-25 10:24:27 +01:00
Brian Goff
f07f54951f Merge pull request #30269 from sdurrheimer/zsh-completion-service-ps-multi
Add zsh completion for multiple service for 'docker service ps'
2017-01-24 16:33:30 -05:00
Michael Crosby
b13ecbc7b5 Merge pull request #30283 from albers/completion-run--init-path
Add bash completion and docs for `docker run|create --init-path`
2017-01-24 10:06:44 -08:00
Brian Goff
34d0619074 Merge pull request #30268 from sdurrheimer/zsh-completion-plugin-install-alias
Add zsh completion for 'docker plugin install --alias'
2017-01-24 10:08:57 -05:00
Brian Goff
aa180e5f31 Merge pull request #30399 from albers/completion-swarm-lock
Add bash completion for `docker swarm unlock|unlock-key`
2017-01-24 09:43:07 -05:00
Brian Goff
3bc021cdf3 Merge pull request #30398 from albers/completion-swarm-init
Add missing options to bash completion for `docker swarm init|update`
2017-01-24 09:41:30 -05:00
Brian Goff
47da8175be Merge pull request #30373 from albers/completion-fix-service-update
Fix bash completion for `docker service update`
2017-01-24 09:31:53 -05:00
Vincent Demeester
d417dd7886 Merge pull request #30248 from albers/completion-capabilities
Improve bash completion for `docker run --cap-{add,drop}`
2017-01-24 12:10:14 +01:00
Vincent Demeester
bb9f7cb280 Merge pull request #30371 from albers/completion-fix-plugin-ls
Fix bash completion for `docker plugin ls`
2017-01-24 11:46:13 +01:00
Harald Albers
07bd5152b3 Add bash completion for docker swarm unlock|unlock-key
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-24 10:11:38 +01:00
Harald Albers
f93da79dc1 Add missing options to bash completion for docker swarm init|update
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-24 10:00:18 +01:00
Harald Albers
550947e437 Fix bash completion for completing nodes
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-24 09:24:34 +01:00
Akihiro Suda
929ae4a0b6 Merge pull request #30375 from albers/completion-service-ps--filter-node
Add bash completion for `docker service ps --filter node`
2017-01-24 11:49:16 +09:00
Brian Goff
b157b3c648 Merge pull request #30318 from sdurrheimer/zsh-completion-init
Add zsh completion for 'dockerd --init' and 'docker {create,run} --init'
2017-01-23 16:28:25 -05:00
Harald Albers
a39a2bb6c2 Add bash completion for docker service ps --filter node
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-23 19:05:00 +01:00
Harald Albers
01ac33ce16 Fix bash completion for docker service update
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-23 18:48:21 +01:00
Harald Albers
72bd2f8fd3 Fix bash completion for docker plugin ls
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-23 18:24:51 +01:00
Anusha Ragunathan
6d6a7fc70c Add bash completion for newly added options to "docker plugin ls"
Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
2017-01-20 15:59:44 -08:00
Tibor Vass
7a97705b52 Merge pull request #29959 from cpuguy83/master_fix_selinux_packaging
[master] Fix conflicts with newly updated selinux policies
2017-01-20 15:13:18 -08:00
Sebastiaan van Stijn
ae99820357 Merge pull request #30282 from sdurrheimer/zsh-completion-swarm-join-availability
Add zsh completion for 'docker swarm --availability'
2017-01-20 17:52:06 +01:00
Sebastiaan van Stijn
156d402133 Merge pull request #30317 from sdurrheimer/zsh-completion-prune-filter
Add zsh completion for 'docker {container,image,network,system} prune --filter
2017-01-20 16:25:42 +01:00
Steve Durrheimer
cdf57782fd
Add zsh completion for 'dockerd --init' and 'docker {create,run} --init'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2017-01-20 16:06:22 +01:00
Steve Durrheimer
784ebccffa
Add zsh completion for 'docker {container,image,network,system} prune --filter'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2017-01-20 15:49:21 +01:00
Harald Albers
182048f185 Add bash completion for run|create --init-path
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-19 08:33:05 -08:00
Steve Durrheimer
ee2ce82c61
Add zsh completion for 'docker swarm --availability'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2017-01-19 16:54:36 +01:00
Steve Durrheimer
82e62b15f3
Add zsh completion for multiple service for 'docker service ps'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2017-01-19 09:04:51 +01:00
Steve Durrheimer
455b7bcbab
Add zsh completion for 'docker plugin install --alias'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2017-01-19 08:58:44 +01:00
Harald Albers
2076261757 Add bash completion for dockerd --init and docker run|create --init
Fixes #30263

Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-19 08:22:14 +01:00
Brian Goff
0e8c7d7277 Merge pull request #30208 from justincormack/no-sqlite
Remove sqlite dependency
2017-01-18 13:15:38 -05:00
Harald Albers
36d8b66cb9 Improve bash completion for docker run --cap-{add,drop}
Docker has several capabilities enabled by default and some not.
It seems natural to follow this distinction in --cap-add and
--cap-drop.

Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-18 16:04:46 +01:00
Justin Cormack
f8119bb7a7 Remove sqlite
This drops support for migrations from pre-1.10 Docker versions, which
should be done via an external tool or an intermediate upgrade.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-01-18 12:27:21 +00:00
Mark Milstein
296f8d5abc add rpm builder for armhf CentOS 7
Signed-off-by: Mark Milstein <mark@epiloque.com>
2017-01-17 18:05:38 +00:00
Justin Cormack
7e3a596a63 Block obsolete socket families in the default seccomp profile
Linux supports many obsolete address families, which are usually available in
common distro kernels, but they are less likely to be properly audited and
may have security issues

This blocks all socket families in the socket (and socketcall where applicable) syscall
except
- AF_UNIX - Unix domain sockets
- AF_INET - IPv4
- AF_INET6 - IPv6
- AF_NETLINK - Netlink sockets for communicating with the ekrnel
- AF_PACKET - raw sockets, which are only allowed with CAP_NET_RAW

All other socket families are blocked, including Appletalk (native, not
over IP), IPX (remember that!), VSOCK and HVSOCK, which should not generally
be used in containers, etc.

Note that users can of course provide a profile per container or in the daemon
config if they have unusual use cases that require these.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-01-17 17:50:44 +00:00
Dmitry Kononenko
dfa4e77d82
bugfix issie 18826: containers do not restart after reboot when bound to virtual network interface
Signed-off-by: Dmitry Kononenko <d@dm42.ru>
2017-01-17 14:05:54 +01:00
Harald Albers
e91dbba7ff Add bash completion for build --squash
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-17 08:52:18 +01:00
Harald Albers
217786423c Add bash completion for container|image|network prune --filter until
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-16 10:47:52 +01:00
Vincent Demeester
fd0ea76931 Merge pull request #30163 from albers/completion-fix-hide-legacy-commands
Fix treatment of DOCKER_HIDE_LEGACY_COMMANDS in bash completion
2017-01-16 10:01:44 +01:00
Sebastiaan van Stijn
96f7cf254b Merge pull request #30143 from tophj-ibm/multi-get-go-from-own-dockerfile
[multi-arch] get go version from arch dockerfile
2017-01-15 15:47:55 +01:00
Brian Goff
0fcd55072b Merge pull request #29902 from caervs/add_autorestart
Add on-failure to default restart policy
2017-01-14 16:40:02 -05:00
Brian Goff
1bbd75c743 Merge pull request #30125 from albers/completion-plugin-install--disable-content-trust
Add bash completion for `plugin install --disable-content-trust`
2017-01-14 09:04:51 -05:00
Harald Albers
12952f537c Fix treatment of DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-14 04:48:41 -08:00
Christopher Jones
fa17ac2560
[multi-arch] get go version from arch dockerfile
Changes a couple of generate scripts so that the architecture
gets the go version from its own Dockerfile. This should cover a
rare case where the go version might have to be different from
the x86 Dockerfile.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
2017-01-13 16:48:41 -05:00
Harald Albers
aa006f1280 Honour $DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-13 15:43:52 +01:00
Harald Albers
725a864a04 Add bash completion for plugin install --disable-content-trust
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-13 11:56:50 +01:00
Harald Albers
f487b268f9 Add bash completion for swarm join --availability
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-11 10:30:56 -08:00
Brian Goff
ec9a05e5e2 Fix conflicts with newly updated selinux policies
The base selinux policies on centos/rhel/oraclelinux have all been
updated in a way that conflicts with the policies we install with
`docker-engine-selinux`. This patch fixes these conflicts.

In addition, removes special cases for old/unsupported versions of
fedora in our selinux package, and change to use a single minimum
version for the selinux base policy package, as this is the minimum
version required to use our selinux policy package.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-01-06 16:04:24 -05:00
Ryan Abrams
7b9ecb9700 Add on-failure to default restart policy
In the event that the docker daemon is managed by systemd and spontaneously
dies the default service configuration does not have docker restart. For people
who just want to install and start docker then never worry about whether docker
is running a better default may be to restart the service on a failure.

Signed-off-by: Ryan Abrams <rdabrams@gmail.com>
2017-01-06 10:23:44 -08:00
Vincent Demeester
ee9bb347a6 Merge pull request #29741 from yuexiao-wang/update-option
keep network options consistent between network connect and run
2017-01-06 19:01:48 +01:00
Vincent Demeester
1dad4cf30c Merge pull request #29888 from albers/completion-plugin-names
Add bash completion for plugin names
2017-01-05 09:54:17 +01:00
Yunxiang Huang
c6544394b8 Fix "zsh/_docker"
Signed-off-by: Yunxiang Huang <hyxqshk@vip.qq.com>
2017-01-05 11:13:17 +08:00
Harald Albers
e7243a303a Add bash completion for plugin names
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-04 09:53:14 -08:00
yuexiao-wang
4f9b076e8e keep network option consistent between network connect and run
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
2017-01-04 19:54:03 +08:00
Vincent Demeester
6129e6ce3e Merge pull request #29697 from yuexiao-wang/fix-docker-daemon
Update docker daemon to dockerd
2017-01-04 11:55:38 +01:00
Harald Albers
3f5d11c9bf Support multiple services on bash completion for docker service ps
Signed-off-by: Harald Albers <github@albersweb.de>
2017-01-03 05:58:13 -08:00
Brian Goff
95a52ef687 Merge pull request #29783 from sanimej/check-config
Update check-config.sh to include modules for FTP/TFTP
2017-01-02 10:24:40 -05:00
Harald Albers
e1403453f0 Add bash completion for plugin disable --force
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-31 09:28:03 -08:00
Harald Albers
390effdd11 Fix bash completion for plugin enable|disable
`docker plugin enable` and `docker plugin disable` only
accept one plugin.

Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-31 09:23:46 -08:00
Santhosh Manohar
e475136208 Update check-config.sh to include modules for FTP/TFTP
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-12-29 13:04:36 -08:00
zhenghenghuo
f1a19fa8c0 fix some typos
Signed-off-by: zhenghenghuo <zhenghenghuo@zju.edu.cn>

try to pass test

Signed-off-by: zhenghenghuo <zhenghenghuo@zju.edu.cn>

try to pass the test

Signed-off-by: zhenghenghuo <zhenghenghuo@zju.edu.cn>
2016-12-28 09:43:27 +08:00
yuexiao-wang
62cc802f61 Update docker daemon to dockerd
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
2016-12-27 17:32:15 +08:00
Tõnis Tiigi
b81f47a288 Merge pull request #29690 from albers/completion-plugin-install--alias
Add bash completion for `plugin install --alias`
2016-12-26 18:42:54 -08:00
Harald Albers
d5935f83a7 Cleanup bash completion for service create|update
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-25 06:04:43 -08:00
Harald Albers
83158f8aff Add bash completion for plugin install --alias
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-25 05:32:50 -08:00
Brian Goff
76b4f5ac28 Merge pull request #29606 from albers/completion-plugins-bundled
Improve bash completion for bundled plugins
2016-12-21 17:12:27 -05:00
Brian Goff
0525a5d729 Merge pull request #27722 from micro-jumbo/master
Stop returns 0 when docker service was not running
2016-12-21 16:08:04 -05:00
Brian Goff
7548fc7637 Merge pull request #28900 from tophj-ibm/ppc64le-rpmbuild-fedora23
[ppc64le] add make rpm for fedora 24
2016-12-21 13:43:13 -05:00
Harald Albers
9ca56f7683 Improve bash completion for bundled plugins
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-20 13:28:46 -08:00
Harald Albers
536a9ec698 Remove bash completion for deprecated docker daemon
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-19 11:40:59 -08:00
Harald Albers
a54cc4f88d Remove bash completion for docker node ps --all|-a
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-18 06:31:25 -08:00
Andrew Hsu
ef98091a90 remove fedora-23 because eol
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-12-15 09:44:34 -08:00
Victor Vieux
9a30560fda Merge pull request #29413 from albers/completion-deploy-experimental
Make bash completion for `docker stack deploy --bundle-file` available only in experimental mode
2016-12-14 17:24:50 -08:00
Kenfe-Mickaël Laventure
b6f870a278 Merge pull request #29387 from vicamo/add-debian-security-updates-when-available
mkimage: add debian security updates source when available
2016-12-14 09:54:50 -08:00
Sebastiaan van Stijn
2fe62f2395 Merge pull request #28943 from vdemeester/publish-long-short-syntax
Remove --port and update --publish for services to support syntaxes
2016-12-14 17:55:48 +01:00
Harald Albers
a53bdfa3be Make bash completion for docker stack deploy --bundle-file experimental
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-14 08:52:07 -08:00
You-Sheng Yang (楊有勝)
e2e5d4bc9d mkimage: add debian security updates source when available
Signed-off-by: You-Sheng Yang (楊有勝) <vicamo@gmail.com>
2016-12-14 23:23:00 +08:00
lixiaobing10051267
cde57a0d56 modify some wrong func information in device_tool.go
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
2016-12-13 17:49:03 +08:00
Sebastiaan van Stijn
9863470c96 Merge pull request #29305 from albers/completion-inspect-plugins
Add bash completion for `docker inspect --type plugin`
2016-12-12 10:13:30 +01:00
Steve Durrheimer
2bdffc1fb5
Add zsh completion for 'docker inspect --type=plugin' and other missing ones
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-12-12 10:09:05 +01:00
Vincent Demeester
75bf18c9f0 Remove --port and update --publish for services to support syntaxes
Add support for simple and complex syntax to `--publish` through the
use of `PortOpt`.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-12-11 23:14:54 +01:00
Harald Albers
81b4b2b5fa Add bash completion for docker inspect --type plugin
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-10 13:31:42 -08:00
Andrew Hsu
387b95216b Revert "add selinux policy for centos-7"
This reverts commit e0852bec96.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-12-08 16:27:48 -08:00
Andrew Hsu
28cfdc62bd Revert "add extra docker.te lines from rhel7.3 docker.spec"
This reverts commit 09e68fdd52.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-12-08 16:27:36 -08:00
Andrew Hsu
793be849c8 Revert "get rhel7.3 selinux-policy-devel pkg for centos-7"
This reverts commit bfe5cab13b.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-12-08 16:27:23 -08:00
Christy Perez
42969d44fc
ppc64le rpmbuild
Add support for 'make rpm' on ppc64le. Currently only fedora 24.

Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com>
2016-12-08 17:16:16 -05:00
Christopher Jones
62ab6809bd
[ppc64le] use official go 1.7.4 binaries
go 1.7.4 introduced official go ppc64le binaries, so use those
instead of using older versions of go and building from src.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
2016-12-08 16:18:10 -05:00
Brian Goff
3b31de62b9 Merge pull request #29142 from tophj-ibm/move-go-to-1.7.4
[project] bump go to go 1.7.4
2016-12-08 11:48:34 -05:00
Christopher Jones
20e243780e
[project] bump go to go 1.7.4
Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
2016-12-07 22:22:39 -05:00
Tõnis Tiigi
1e92365a5f Merge pull request #29124 from ijc25/check-config-legacy-vsyscall
Caution against the use of CONFIG_LEGACY_VSYSCALL_NATIVE
2016-12-07 17:13:55 -08:00
Steve Durrheimer
bce11a29f8
Add zsh completion for 'docker network create --attachable'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-12-07 08:09:42 +01:00
Harald Albers
8d2e789bbc Add bash completion for docker network create --attachable
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-06 08:44:02 -08:00
Brian Goff
b7ab3276c2 Merge pull request #29081 from andrewhsu/fix-rhel73
add selinux policy for centos-7
2016-12-06 11:00:45 -05:00
Sebastiaan van Stijn
6a8156d646 Merge pull request #29115 from andrewhsu/fix-vim-install
run dnf upgrade before installing in fedora
2016-12-05 19:05:14 +01:00
Sebastiaan van Stijn
2ef729460d Merge pull request #29111 from albers/fix-completion-service-create-update
Fix bash completion for `docker service create|update
2016-12-05 15:16:23 +01:00
Brian Goff
602efb0cab Merge pull request #29109 from albers/completion-secrets
Add bash completion for secret management
2016-12-05 09:13:26 -05:00
Ian Campbell
49dcce7ba0 Caution against the use of CONFIG_LEGACY_VSYSCALL_NATIVE
It provides an ASLR-bypassing target with usable ROP gadgets.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-12-05 10:13:07 +00:00
Andrew Hsu
ebd804bfb6 run dnf upgrade before installing in fedora
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-12-04 16:29:03 -08:00
Harald Albers
3d43c48c1b Add bash completion for docker version --format
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-04 14:13:14 -08:00
Harald Albers
be5685e4bf Fix bash completion for `docker service create|update
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-04 12:11:33 -08:00
Harald Albers
324dd3cfec Add bash completion for secret management
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-04 11:25:41 -08:00
Andrew Hsu
bfe5cab13b get rhel7.3 selinux-policy-devel pkg for centos-7
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-12-02 14:39:24 -08:00
Andrew Hsu
09e68fdd52 add extra docker.te lines from rhel7.3 docker.spec
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-12-02 14:18:58 -08:00
Andrew Hsu
e0852bec96 add selinux policy for centos-7
This policy is from commit
583a67ffdf

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-12-02 10:26:00 -08:00
Vincent Demeester
1c69680641 Merge pull request #28738 from sathieu/debootstrap_errors
Improve error reporting in mkimage/debootstrap
2016-12-02 17:41:08 +01:00
Harald Albers
10f567ec6a Add bash completion for experimental docker deploy
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-02 04:28:10 -08:00
Harald Albers
af84b7e441 Allow selective activation of experimental features in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
2016-12-02 04:28:10 -08:00
Mathieu Parent
ee75c3fca2 Improve error reporting in mkimage/debootstrap
Signed-off-by: Mathieu Parent <math.parent@gmail.com>
2016-12-01 21:27:10 +01:00
Antonio Murdaca
887bc48319
contrib: download-frozen-image-v2.sh requires jq
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-12-01 12:40:58 +01:00
Vincent Demeester
849f659fd9 Merge pull request #28944 from albers/completion-inspect-more-types
Add more types to bash completion of `docker inspect`
2016-11-30 22:28:13 +01:00
Alexander Morozov
53d69aeb74 Merge pull request #28885 from vdemeester/revert-service-ps-all
Revert "Add -a option to service/node ps"
2016-11-30 12:02:34 -08:00
Alexander Morozov
caaa52c124 Merge pull request #28838 from AkihiroSuda/remove-run-mount
[Revert #26825] cli: remove `--mount` from `docker run`
2016-11-30 11:56:42 -08:00
Alexander Morozov
466dd8585d Merge pull request #28864 from sdurrheimer/zsh-completion-stack
Add zsh completion for 'docker stack' subcommand
2016-11-30 11:56:03 -08:00
Alexander Morozov
d9bd5aa186 Merge pull request #28746 from albers/completion-stack
Add bash completion for `docker stack`
2016-11-30 11:53:46 -08:00
Harald Albers
1076f0882b Add more types to bash completion of docker inspect
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-29 09:45:43 -08:00
Vincent Demeester
cee0fff9fe
Revert "Add bash completion for docker service ps --all"
This reverts commit 188d2fac57.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-11-29 09:33:03 +01:00
Kenfe-Mickaël Laventure
783d4ac6d4 Merge pull request #28625 from albers/completion-plugins
Add bash completion for plugin API
2016-11-28 08:56:53 -08:00
Cyprian Gracz
74cf6157ef Stop returns 0 when docker service was not running
In case when docker was not running init script stop was returning value <> 0.
Due to this fact it was impossible to uninstall the docker-engine if the docker service was stopped.

Signed-off-by: Cyprian Gracz <cyprian.gracz@micro-jumbo.eu>

Fixed message logging

Signed-off-by: Cyprian Gracz <cyprian.gracz@micro-jumbo.eu>
2016-11-28 12:27:21 +01:00
Harald Albers
f3b7f40aaf Add bash completion for docker service {create,update} host options
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-27 05:08:35 -08:00
Steve Durrheimer
1e0c612f84
Add zsh completion for 'docker stack' subcommand
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-27 13:59:48 +01:00
Harald Albers
ecb707cb0f Add bash completion for plugin API
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-26 11:04:55 -08:00
Harald Albers
16494a81f9 Add bash completion for docker stack
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-26 10:45:07 -08:00
Steve Durrheimer
b23fbc3fbd
Add zsh completion for 'docker service update --hostname'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-26 14:13:00 +01:00
Akihiro Suda
e6d9b7de64 cli: remove --mount from docker run
This commit reverts 273eeb813c (#26825).
For the discussion so far, please refer to #28527.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2016-11-26 04:55:28 +00:00
Harald Albers
9d98d6d8cb Add bash completion for docker service update --hostname
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-25 12:42:30 +01:00
Ian Campbell
163db04452 Check for LEGACY_VSYSCALL_* options
Chosing LEGACY_VSYSCALL_NONE (over NATIVE or EMULATE) will mean that binaries
using eglibc <= 2.13 will not run (segfault).

Fixes #28705.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-11-24 11:39:05 +00:00
cuiwei13
cd7496abb5 Checking whether CG_MEM_SWAP is enabled at the current system session
Signed-off-by: CUI Wei <ghostplant@qq.com>
2016-11-22 21:24:01 -05:00
Sebastiaan van Stijn
545a2f009e
Use official fedora 25 image
Fedora 25 was released today, and the official
image will be available soon.

This removes the temporary override, so that
we can build using the official image.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-11-23 02:19:02 +01:00
Sebastiaan van Stijn
313502488e Merge pull request #28506 from bfirsh/prepare-api-docs-for-swagger-docs
Prepare docs and Swagger definition for automatically generated API docs
2016-11-22 22:47:38 +01:00
Sebastiaan van Stijn
6e11ca0fdf Merge pull request #28672 from mlaventure/arm-ubuntu-xenial
Add support for armhf ubuntu-xenial deb
2016-11-22 19:57:11 +01:00
Sebastiaan van Stijn
bae61194db Merge pull request #27625 from hqhq/add_deb_support
Add `make deb` support for aarch64
2016-11-22 18:24:58 +01:00
Sebastiaan van Stijn
6aa7073c00 Merge pull request #28700 from sdurrheimer/zsh-completion-images-filter-reference
Add zsh completion for 'docker image ls --filter reference'
2016-11-22 17:00:38 +01:00
Sebastiaan van Stijn
8f6ed2a47f Merge pull request #28699 from sdurrheimer/zsh-completion-dockerd-userland-proxy-path
Add zsh completion for 'dockerd --userland-proxy-path'
2016-11-22 17:00:10 +01:00
Kenfe-Mickael Laventure
3b3cf87478 Add generate.sh for armhf deb Dockerfiles
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2016-11-22 07:12:57 -08:00
Kenfe-Mickael Laventure
b118056241 Add support for armhf ubuntu-yakkety deb
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2016-11-22 07:09:10 -08:00
Ben Firshman
f0d55cd081
Rename Remote API to Engine API
Implementation of https://github.com/docker/docker/issues/28319

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-11-22 12:49:38 +00:00
Sebastiaan van Stijn
f67c8163d4 Merge pull request #27628 from flixr/deb_armhf_ubuntu-xenial
build debian package for armhf ubuntu-xenial
2016-11-22 11:47:42 +01:00
Vincent Demeester
7ca953e66e Merge pull request #28343 from albers/completion-build--network
Add bash completion for `docker build --network`
2016-11-22 09:29:42 +01:00
Steve Durrheimer
15134b8d36
Add zsh completion for 'docker image ls --filter reference'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-22 08:01:45 +01:00
Steve Durrheimer
97e1892922
Add zsh completion for 'dockerd --userland-proxy-path'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-22 07:57:31 +01:00
Sebastiaan van Stijn
e350d44dbe Merge pull request #27621 from AkihiroSuda/machine-install-bundle
contrib: add docker-machine-install-bundle.sh
2016-11-22 01:10:53 +01:00
Sebastiaan van Stijn
fff1885a4b Merge pull request #28628 from albers/completion-images-f-reference
Add bash completion for `docker images --filter reference`
2016-11-22 00:52:34 +01:00
Felix Ruess
015e83a8da build debian package for armhf ubuntu-xenial
Signed-off-by: Felix Ruess <felix.ruess@gmail.com>
2016-11-21 12:34:20 +01:00
Akihiro Suda
fa314aa52e contrib: add docker-machine-install-bundle.sh
docker-machine-install-bundle.sh installs the bundle to Docker Machine instances.

This script helps developers to test the latest Docker with Swarm-mode enabled.

Usage:

    $ docker-machine create -d some-driver dm01
    ..
    $ docker-machine create -d some-driver dm05
    $ make binary
    $ contrib/docker-machine-install-bundle.sh install dm01 dm02 dm03 dm04 dm05

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2016-11-21 07:13:11 +00:00
Harald Albers
0d573a62f7 Add bash completion for dockerd --userland-proxy-path
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-20 09:58:39 -08:00
Harald Albers
e84d62f6cb Add bash completion for docker images --filter reference
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-19 13:05:51 -08:00
Justin Cormack
228ee16df3 Fix check config script on 4.8 kernels
DEVPTS_MULTIPLE_INSTANCES is no longer an option, it is always set, so
do not check for this post 4.8.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-11-18 11:42:05 +00:00
Qiang Huang
a532ff8cc3 Add make deb support for aarch64
Fixes: #27045

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2016-11-17 09:38:17 +08:00
Steve Durrheimer
70fdbff5f0
Add zsh completion for 'docker system df'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-16 08:39:21 +01:00
Sebastiaan van Stijn
35ee642feb Merge pull request #28380 from sdurrheimer/zsh-completion-build-network
Add zsh completion for 'docker image build --network'
2016-11-15 00:30:30 +01:00
Sebastiaan van Stijn
a27e51ea98 Merge pull request #28378 from sdurrheimer/zsh-completion-service-dns
Add zsh completion for 'docker service' DNS settings
2016-11-14 15:46:05 +01:00
Steve Durrheimer
0bc07d2957
Add zsh completion for 'docker service {create,update} --secret'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-14 13:38:48 +01:00
Sebastiaan van Stijn
e129365fd3 Merge pull request #28344 from albers/completion-service--ports
Add bash completion for managing ports in services
2016-11-14 12:40:36 +01:00
Sebastiaan van Stijn
7ee0c3c9f8 Merge pull request #28381 from sdurrheimer/zsh-completion-secret-command
Add zsh completion for the new 'docker secret' command
2016-11-14 12:14:25 +01:00
Steve Durrheimer
54ebf4f74a
Add zsh completion for 'docker service' DNS settings
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-14 09:45:27 +01:00
Steve Durrheimer
b184bdabf7
Add zsh completion for the new 'docker secret' command
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-14 08:24:19 +01:00
Steve Durrheimer
11bfa638fe
Add zsh completion for 'docker image build --network'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-14 08:22:09 +01:00
Yong Tang
fb8404a348 Update bash completion dns-options-add/rm -> dns-option-add/rm
In 28186, `dns-options-add/rm` has been changed to `dns-option-add/rm`
in `docker service create/update`, for the purpose of consistency.

This fix updates bash completion to remove extra `s`.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-11-13 19:12:01 -08:00
Akihiro Suda
f39cb08209 Merge pull request #28362 from albers/completion-service-dns
Add bash completion for DNS settings in services
2016-11-14 05:42:24 +09:00
Vincent Demeester
e649cc1476 Merge pull request #28360 from albers/completion-service-ps--all
Add bash completion for `docker service ps --all`
2016-11-13 21:39:07 +01:00
Vincent Demeester
f1dd4c5ad8 Merge pull request #28357 from sdurrheimer/zsh-completion-service-ports
Add zsh completion for 'docker service {create --port, update --port-…
2016-11-13 21:38:17 +01:00
Vincent Demeester
bf2c875cd6 Merge pull request #28355 from sdurrheimer/zsh-completion-build-cache-from
Add zsh completion for 'docker image build --cache-from'
2016-11-13 21:37:10 +01:00
Vincent Demeester
7220888b09 Merge pull request #28342 from albers/completion-build--cache-from
Add bash completion for `docker build --cache-from`
2016-11-13 21:34:55 +01:00
Harald Albers
28dc8c863a Add bash completion for DNS settings in services
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-13 11:17:18 -08:00
Harald Albers
188d2fac57 Add bash completion for docker service ps --all
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-13 09:32:53 -08:00
Steve Durrheimer
36916ae2ad
Add zsh completion for 'docker service {create --port, update --port-{add,rm}}'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-13 14:21:13 +01:00
Harald Albers
279bd827fe Add bash completion for managing ports in services
Bash completion for

- `docker service create --port`
- `docker service update --port-{add,rm}`

Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-13 04:57:37 -08:00
Harald Albers
7b6a38e1b1 Fix bash completion for docker ps --filter is-task
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-13 04:54:54 -08:00
Steve Durrheimer
ac50074258
Add zsh completion for 'docker image build --cache-from'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-13 13:52:52 +01:00
Harald Albers
d48e70843f Add bash completion for docker build --network
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-12 10:32:08 -08:00
Harald Albers
c6357f04b5 Add bash completion for docker build --cache-from
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-12 10:12:47 -08:00
Harald Albers
98a2071696 Add bash completion for docker daemon --seccomp-profile
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-11 16:12:17 +01:00
Andrew Hsu
5764171fe7 replace vim-common with vim for opensuse
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-11-10 15:50:29 -08:00
Victor Vieux
f1f3c4cc87 Merge pull request #28222 from thaJeztah/add-fedora-25
Add Fedora 25 RPMs
2016-11-10 13:57:41 -08:00
Sebastiaan van Stijn
b24a833f81 Merge pull request #28259 from sdurrheimer/zsh-completion-node-rm-swarm-leave-force
Add zsh completion for 'docker {node rm,swarm leave} -f'
2016-11-10 21:52:18 +01:00
Sebastiaan van Stijn
93591faeb5 Merge pull request #28255 from sdurrheimer/zsh-completion-dockerd-seccomp-profile
Add zsh completion for 'docker daemon --seccomp-profile'
2016-11-10 21:51:29 +01:00
Sebastiaan van Stijn
8aa04807ad Merge pull request #28256 from sdurrheimer/zsh-completion-service-create-update-tty
Add zsh completion for 'docker service {create,update} --tty'
2016-11-10 21:50:29 +01:00
Sebastiaan van Stijn
c51b16f0e4 Merge pull request #28252 from sdurrheimer/zsh-completion-service-create-hostname
Add zsh completion for 'docker service create --hostname'
2016-11-10 21:49:02 +01:00
Steve Durrheimer
04e7fca620
Add zsh completion for 'docker {node rm,swarm leave} -f'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-10 21:31:34 +01:00
Steve Durrheimer
a34a41b20b
Add zsh completion for 'docker service {create,update} --tty'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-10 21:25:24 +01:00
Steve Durrheimer
0f324a5b15
Add zsh completion for 'docker daemon --seccomp-profile'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-10 21:21:25 +01:00
Brian Goff
a851cad25c Merge pull request #28254 from sdurrheimer/zsh-completion-container-create-run-cpus
Add zsh completion for 'docker {run,create} --cpus'
2016-11-10 15:16:19 -05:00
Steve Durrheimer
9b02c87f7b
Add zsh completion for 'docker {run,create} --cpus'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-10 21:10:22 +01:00
Steve Durrheimer
ca654a417a
Add zsh completion for 'docker service create --hostname'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-10 21:00:17 +01:00
Steve Durrheimer
712445607d
Add zsh completion for new prune commands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-10 20:51:44 +01:00
Sebastiaan van Stijn
c4f1cb7791 Add Fedora 25 RPMs
This is a temporary version for building
Fedora 25. Fedora 25 will be released during
code-freeze, and is currently in beta, so no
official images are available yet.

Current release date is scheduled for 2016-11-15
https://fedoraproject.org/wiki/Releases/25/Schedule

Once released, the image will be updated for
GA

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-11-10 20:44:30 +01:00
Steve Durrheimer
9df7cdcb2e
Add zsh completion for 'docker system' subcommands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-10 20:17:58 +01:00
Sebastiaan van Stijn
33af4dd505 Merge pull request #28186 from yongtang/27567-follow-up-dns-options
Add `--dns-option` to `docker run` and hide `--dns-opt`
2016-11-10 16:20:17 +01:00
Victor Vieux
75091abe76 Merge pull request #28212 from crosbymichael/tini-deps
Add tini deps for deb and rpm
2016-11-09 15:20:58 -08:00
Yong Tang
9b6b3c2076 Add --dns-option to docker run and hide --dns-opt
This fix is a follow up to #27567 based on:
https://github.com/docker/docker/pull/27567#issuecomment-259295055

In #27567, `--dns-options` has been added to `service create/update`,
together with `--dns` and `--dns-search`. The `--dns-opt` was used
in `docker run`.

This fix add `--dns-option` (not `--dns-options`) to `docker run/create`, and hide
`--dns-opt`. It is still possible to use `--dns-opt` with
`docker run/create`, though it will not show up in help output.

This fix change `--dns-options`to --dns-option` for `docker service create`
and `docker service update`.

This fix also updates the docs and bash/zsh completion scripts.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-11-09 12:13:25 -08:00
Harald Albers
cc0c14aab7 Add bash completion for docker {node rm,swarm leave} -f
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-09 11:42:18 -08:00
Michael Crosby
053738f7e2 Reorder rpm deps for changelog
The changelog is auto generated and the comment in the generate.sh
script is a lie, these should not be in alphabetical order but
in chronological order.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-11-09 11:33:35 -08:00
Michael Crosby
6440c5d822 Add tini build deps to deb generation
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-11-09 11:12:14 -08:00
Michael Crosby
e0e7dd6fee Add tini deps to rpm build
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-11-09 10:47:24 -08:00
Brian Goff
5125484720 Merge pull request #28197 from sdurrheimer/zsh-completion-image-subcommand
Add zsh completion for new 'docker image' subcommands
2016-11-09 10:30:55 -05:00
Steve Durrheimer
29367c7e68
Cleanup after moving all zsh completion logics for the new image command
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:25 +01:00
Steve Durrheimer
cc879af088
Move zsh completion logic to new subcommand: tag
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:23 +01:00
Steve Durrheimer
d2af96342d
Move zsh completion logic to new subcommand: save
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:22 +01:00
Steve Durrheimer
e5c98f3887
Move zsh completion logic to new subcommand: rm
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:20 +01:00
Steve Durrheimer
17cdc95a19
Move zsh completion logic to new subcommand: push
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:18 +01:00
Steve Durrheimer
102742a3cd
Move zsh completion logic to new subcommand: pull
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:16 +01:00
Steve Durrheimer
c333821334
Move zsh completion logic to new subcommand: ls
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:14 +01:00
Steve Durrheimer
c308befdc0
Move zsh completion logic to new subcommand: load
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:13 +01:00
Steve Durrheimer
d0014299b4
Add zsh completion logic to new subcommand: inspect
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:11 +01:00
Steve Durrheimer
a4656e46f7
Move zsh completion logic to new subcommand: import
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:10 +01:00
Steve Durrheimer
2014e78730
Move zsh completion logic to new subcommand: history
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:08 +01:00
Steve Durrheimer
d3305a17e1
Move zsh completion logic to new subcommand: build
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:07 +01:00
Steve Durrheimer
53a56990c4
Add zsh completion for 'docker image' subcommands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:15:05 +01:00
Steve Durrheimer
2a44da9732
Rename zsh images & log complete functions
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-09 08:14:40 +01:00
Aaron Lehmann
842d11f44c cli: Add options for Raft snapshotting
Add the following options to "swarm init" and "swarm update":

- --max-snapshots: Retain this many old Raft snapshots in addition
  to the latest one

- --snapshot-interval: Number of log entries between Raft snapshots

These options already existed in SwarmKit and the Docker API but were
never exposed in the CLI. I'm adding them here to fix this oversight.

--max-snapshots may be useful for debugging purposes and more
conservative users who want to store rolling backups of old versions of
the Raft state.

--snapshot-interval is most useful for performance tuning. The default
value of 10000 may not be ideal for some setups.

There is also a LogEntriesForSlowFollowers option that is not exposed. I
decided not to expose it along with these others because I don't think
it's generally useful (and I'm not sure what I would call the CLI flag).
But if people want, I can expose it for the sake of completeness.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-11-08 13:14:01 -08:00
Vincent Demeester
d46c7109b5 Merge pull request #27888 from sdurrheimer/zsh-completion-container-subcommand
Add zsh completion for new 'docker container' subcommands
2016-11-08 11:24:28 +01:00
Harald Albers
bfd8f7a7e1 Add bash completion for docker service {create,update} --tty
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-08 09:13:23 +01:00
Victor Vieux
8442db9830 Merge pull request #27993 from thaJeztah/add-yakkety-yak
Add Ubuntu 16.10 Yakkety Yak
2016-11-07 16:47:12 -08:00
Tibor Vass
109c26bd74 Merge pull request #28056 from LK4D4/solaris_me
Add functional support for Docker sub commands on Solaris
2016-11-07 16:46:18 -08:00
Amit Krishnan
934328d8ea Add functional support for Docker sub commands on Solaris
Signed-off-by: Amit Krishnan <krish.amit@gmail.com>

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2016-11-07 09:06:34 -08:00
Sebastiaan van Stijn
27beb64d46
Add Ubuntu 16.10 Yakkety Yak
Ubuntu 16.10 has been released http://releases.ubuntu.com/yakkety/

Note that this is a short-term release, so will
EOL (and removed again) in 9 months

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-11-07 15:14:36 +01:00
Akihiro Suda
de78ed432b Merge pull request #28093 from albers/completion-run--cpus
Add bash completion for `docker {run,create} --cpus`
2016-11-07 17:31:40 +09:00
Akihiro Suda
67a247154c Merge pull request #28094 from albers/completion-system-df
Add bash completion for `docker system df`
2016-11-07 17:31:27 +09:00
Vincent Demeester
afb1119c85 Merge pull request #28096 from albers/completion-prune
Add bash completion for new prune commands
2016-11-07 09:30:56 +01:00
Harald Albers
d65934a8b8 Fix bash completion for docker inspect --type
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-05 11:22:47 -07:00
Harald Albers
8099280cd8 Add bash completion for new prune commands
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-05 10:39:33 -07:00
Harald Albers
09172051fc Add bash completion for docker system df
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-05 10:12:35 -07:00
Harald Albers
9268bbaeea Add bash completion for docker {run,create} --cpus
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-05 09:59:55 -07:00
Sebastiaan van Stijn
6087185676 Merge pull request #28068 from tophj-ibm/switch-all-golang-download-links
switch all go download links to https://golang.org/dl
2016-11-04 14:21:58 -07:00
Michael Crosby
cac13fc131 Merge pull request #27737 from justincormack/no-ambient-1.13
Revert ambient capabilities for 1.13
2016-11-04 12:52:21 -07:00
Harald Albers
42f8562984 Add bash completion for docker service create --hostname
Signed-off-by: Harald Albers <github@albersweb.de>
2016-11-04 19:08:17 +01:00
Justin Cormack
c5251f7116 Use runc version built without ambient capabilities
Until we can support existing behaviour with `sudo` disable
ambient capabilities in runc build.

Add tests that non root user cannot use default capabilities,
and that capabilities are working as expected.

Test for #27590

Update runc.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-11-04 17:25:28 +00:00
Christopher Jones
732d1035d2
switch all go download links to https://golang.org/dl
this switches all go download links to use a redirect,
https://golang.org/dl/ instead of the direct source.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
2016-11-04 09:03:41 -05:00
Steve Durrheimer
94863d8c63
Cleanup after moving all zsh completion logics for the new container command
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:16 +01:00
Steve Durrheimer
6a662de965
Move zsh completion logic to new subcommand: wait
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:13 +01:00
Steve Durrheimer
b25603391c
Move zsh completion logic to new subcommand: update
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:12 +01:00
Steve Durrheimer
07a3ccec0a
Move zsh completion logic to new subcommand: top
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:10 +01:00
Steve Durrheimer
6aff1be430
Move zsh completion logic to new subcommand: stop
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:09 +01:00
Steve Durrheimer
d0e4f7fbe6
Move zsh completion logic to new subcommand: stats
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:07 +01:00
Steve Durrheimer
8e5285c283
Move zsh completion logic to new subcommand: start
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:05 +01:00
Steve Durrheimer
dcc5b72020
Move zsh completion logic to new subcommand: run
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:04 +01:00
Steve Durrheimer
1df32a4f6c
Move zsh completion logic to new subcommand: rm
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:02 +01:00
Steve Durrheimer
64b546e7b8
Move zsh completion logic to new subcommand: restart
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:55:01 +01:00
Steve Durrheimer
fc6bd22725
Move zsh completion logic to new subcommand: rename
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:59 +01:00
Steve Durrheimer
4ffc37224d
Move zsh completion logic to new subcommand: port
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:58 +01:00
Steve Durrheimer
e602bfbc34
Move zsh completion logic to new subcommand: pause, unpause
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:56 +01:00
Steve Durrheimer
44bb318161
Move zsh completion logic to new subcommand: ps
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:55 +01:00
Steve Durrheimer
28bd616212
Move zsh completion logic to new subcommand: logs
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:53 +01:00
Steve Durrheimer
45fdea257c
Move zsh completion logic to new subcommand: kill
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:51 +01:00
Steve Durrheimer
e5424b656b
Add zsh completion logic to new subcommand: inspect
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:50 +01:00
Steve Durrheimer
911ef73ee1
Move zsh completion logic to new subcommand: export
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:48 +01:00
Steve Durrheimer
ee27e97218
Move zsh completion logic to new subcommand: exec
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:47 +01:00
Steve Durrheimer
0632c34439
Move zsh completion logic to new subcommand: diff
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:45 +01:00
Steve Durrheimer
abf2f0087d
Move zsh completion logic to new subcommand: create
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:44 +01:00
Steve Durrheimer
b067a59bfd
Move zsh completion logic to new subcommand: cp
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:42 +01:00
Steve Durrheimer
89737ea253
Move zsh completion logic to new subcommand: commit
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:40 +01:00
Steve Durrheimer
d5ca5c1e08
Move zsh completion logic to new subcommand: attach
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:39 +01:00
Steve Durrheimer
a9443b7388
Add zsh completion for 'docker container' subcommands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:37 +01:00
Steve Durrheimer
431e9cb27c
Rename containers complete function in zsh completion
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-11-04 08:54:27 +01:00
Brian Goff
d5c3eb0afb Merge pull request #28046 from tophj-ibm/make-debs-1610
[ppc64le] add yakkety yak to 'make deb'
2016-11-03 20:17:36 -04:00
Sebastiaan van Stijn
6b3b9d53e1 Merge pull request #28021 from YuPengZTE/devString
Add “” for String
2016-11-03 17:03:56 -07:00
Christopher Jones
da382044d3
[ppc64le] add yakkety yak to 'make deb'
This adds 'make deb' support for yakkety yak on ppc64le

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
2016-11-03 15:59:59 -04:00
Christopher Jones
629e85ad89
[ppc64le] update make deb go download link
Updates the ppc64le `make deb` trusty download link to be
consistent with the other Dockerfiles. Also minor clarification
to how we install go.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
2016-11-03 15:26:28 -04:00
yupeng
167daf5060 Add for String
Signed-off-by: yupeng <yu.peng36@zte.com.cn>
2016-11-03 16:15:26 +08:00
Akihiro Suda
273eeb813c cli: add --mount to docker run
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2016-11-03 07:08:59 +00:00
Sebastiaan van Stijn
11605903d0 Merge pull request #27746 from Microsoft/jjh/pscompletion
Redirect powershell completion
2016-11-02 19:08:38 -07:00
Sebastiaan van Stijn
a1a93f631f Merge pull request #28007 from justincormack/check-config-error
Make the check-config script return success or failure
2016-11-02 18:23:59 -07:00
Sebastiaan van Stijn
d83f56ee5f Merge pull request #27979 from allencloud/more-specific-in-service-scale-description
add replicated in service scale command description
2016-11-02 18:01:59 -07:00
Justin Cormack
6d116ffbbb Make the check-config script return success or failure
Although primarily a human readable script, it is quite useful
to return success or failure from this script so it can be used
as a basic test.

Fail if any check fails, including some that are optional,
other than the storage driver tests, where only one needs to
succeed, so the system has at least one workable storage driver.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-11-02 23:23:52 +00:00
allencloud
002262d6f5 node rm can be applied on not only active node
Signed-off-by: allencloud <allen.sun@daocloud.io>
2016-11-02 17:22:04 +08:00
allencloud
b9fdbbad61 add replicated in service scale command description
Signed-off-by: allencloud <allen.sun@daocloud.io>
2016-11-02 16:15:57 +08:00
Sebastiaan van Stijn
d1fe79ca84 Merge pull request #27869 from bltavares/nuke-when-graphdir-is-a-mount
Nuke when graphdir is a mount
2016-11-01 23:21:49 -07:00
Sebastiaan van Stijn
b5589fba89 Merge pull request #27855 from justincormack/check-ext3
Do not warn in check-config script about ext3 if provided by ext4
2016-11-01 20:21:48 -07:00
Bruno Tavares
5f98b97749 Nuke when graphdir is a mount
Previously, when the graphdir was a root of a mountpoint, we would not
be able to cleanup the graphdir, as the script would umount in case
target dir is a mount itself

```/etc/mtab
/dev/xvdc1 /var/lib/docker btrfs
```

When running the script, the graphdir would be unmounted and it would
remove a (possibly) empty folder.

```
Nuking /var/lib/docker ...
  (if this is wrong, press Ctrl+C NOW!)

  + sleep 10

  + umount -f /var/lib/docker
  + rm -rf /var/lib/docker
  ```

This PR includes the necessary changes to nuke the folder on this
scenario, including when the graphdir is a btrfs mount iself.

Signed-off-by: Bruno Tavares <btavare@thoughtworks.com>
2016-11-01 22:22:25 -02:00
Vincent Demeester
17aaa0890a Merge pull request #27879 from sdurrheimer/zsh-completion-ps-health-filter
Add zsh completion for 'docker ps --filter health='
2016-10-29 19:23:55 +02:00
Sebastiaan van Stijn
e1369f2f39 Merge pull request #27881 from albers/completion-ps--filter-health
Add bash completion for `docker ps --filter health`
2016-10-29 10:05:24 -07:00
Harald Albers
5e6a59b59f Add bash completion for docker ps --filter health
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-29 04:26:08 -07:00
Steve Durrheimer
8df3d6a2a7
Add zsh completion for 'docker ps --filter health='
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-10-29 12:13:29 +02:00
Qiang Huang
e6866492c4 Fix bunch of typos
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2016-10-29 15:03:26 +08:00
Lily Guo
2f58494ae6 Service create --group param
--group-add was used for specifying groups for both service create
and service update. For create it was confusing since we don't have
an existing set of groups. Instead I added --group to create, and
moved --group-add to service update only, like --group-rm
This deals with issue 27646

Signed-off-by: Lily Guo <lily.guo@docker.com>

Update flag documentation

Specify that --group, --group-add and --groupd-rm refers to
supplementary user groups

Signed-off-by: Lily Guo <lily.guo@docker.com>

Fix docs for groups and update completion scripts

Signed-off-by: Lily Guo <lily.guo@docker.com>
2016-10-28 13:26:31 -07:00
Vincent Demeester
f860289131 Merge pull request #27369 from cezarsa/hc
Add --health-* flags to service create and update
2016-10-28 21:59:52 +02:00
Michael Crosby
9842f019ec Merge pull request #27731 from albers/completion-export--output
Add bash completion for `docker export --output`
2016-10-28 10:59:05 -07:00
Michael Crosby
a52b9b4591 Merge pull request #27732 from albers/completion-pause-multiple-containers
Add support for multiple containers to bash completion for `docker pause`
2016-10-28 10:58:34 -07:00
Cezar Sa Espinola
7bd2611789
Add --health-* commands to service create and update
A HealthConfig entry was added to the ContainerSpec associated with the
service being created or updated.

Signed-off-by: Cezar Sa Espinola <cezarsa@gmail.com>
2016-10-28 15:19:08 -02:00
Vincent Demeester
1462ea37d0 Merge pull request #27856 from albers/completion-service-create--env-file
Add bash completion for `docker service create --env-file`
2016-10-28 19:00:06 +02:00
Justin Cormack
b28619046a Do not warn in check-config script about ext3 if provided by ext4
Many distributions now use ext4 to provide ext2 and ext3 support,
so do not warn about possibly missing ext3 support if the config
option is used.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-10-28 12:51:09 +01:00
Harald Albers
b2db0cdae7 Add bash completion for docker service create --env-file
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-28 12:53:32 +02:00
Steve Durrheimer
60813045c1
Add zsh completion for 'docker service create --env-file'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-10-28 08:10:42 +02:00
Vincent Demeester
89011970e0 Merge pull request #27654 from gaocegege/add-quiet-mode-to-service-ps
Add -q option to `docker service ps`
2016-10-28 05:21:03 +02:00
Ce Gao
9efa472bd1 fixes #27643
Signed-off-by: Ce Gao <ce.gao@outlook.com>
2016-10-28 08:02:57 +08:00
Sebastiaan van Stijn
3a3a87bff8 Merge pull request #26988 from thaJeztah/remove-service-update-name-flag
Remove service update name flag
2016-10-27 16:55:47 -07:00
Sebastiaan van Stijn
047e44eeb1 Remove --name flag from service update
The --name flag was inadvertently added to
docker service update, but is not supported,
as it has various side-effects (e.g., existing
tasks are not renamed).

This removes the flag from the service update
command.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-10-27 09:16:29 -07:00
Harald Albers
a3efa05d3a Move bash completion logic to new subcommand: info
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-27 09:10:39 +02:00
Harald Albers
1de8e84a5c Move bash completion logic to new subcommand: events
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-27 09:08:18 +02:00
Harald Albers
5290f74878 Add bash completion for new docker system command family
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-27 09:05:21 +02:00
Vincent Demeester
362eb4cfbb Merge pull request #27719 from albers/completion-image
Add bash completion for new `docker image` command family
2016-10-27 00:41:26 +02:00
Vincent Demeester
80d6d2e129 Merge pull request #23430 from erikstmartin/realtime-threads
Implementing support for --cpu-rt-period and --cpu-rt-runtime
2016-10-27 00:22:06 +02:00
Brian Goff
2a2f183627 Merge pull request #27724 from sdurrheimer/zsh-completion-dockerd-experimental
Add zsh completion for 'dockerd --experimental'
2016-10-26 09:02:27 -07:00
Erik St. Martin
56f77d5ade 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>
2016-10-26 11:33:06 -04:00
Vincent Demeester
a2f695d7fa
Remove unmaintained Dockerfile syntax for Kate
We don't support this and no maintainers uses Kate.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-10-25 15:42:27 -07:00
Sebastiaan van Stijn
f7e2f8ac1c Merge pull request #27620 from andrewhsu/fix-debian-stretch-apt-mirror
sed replace apt mirror with default deb.debian.org for debian distros
2016-10-25 15:30:07 -07:00
Andrew Hsu
dbe17defd1 sed replace apt mirror with default deb.debian.org for debian distros
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2016-10-25 13:25:21 -07:00
John Howard
65fdbf0210 Redirect powershell completion
Signed-off-by: John Howard <jhoward@microsoft.com>
2016-10-25 09:48:53 -07:00
Vincent Demeester
95b459df6d Merge pull request #27716 from sdurrheimer/zsh-completion-daemon-shutdown-timeout
Add zsh completion for 'dockerd --shutdown-timeout'
2016-10-25 08:58:34 -07:00
Vincent Demeester
c851aea2b6 Merge pull request #27715 from sdurrheimer/zsh-completion-create-run-stop-timeout
Add zsh completion for 'docker {create,run} --stop-timeout'
2016-10-25 08:58:18 -07:00
Kenfe-Mickaël Laventure
9643f0e816 Merge pull request #27721 from albers/completion-dockerd--experimental
Add bash completion for `dockerd --experimental`
2016-10-25 07:10:23 -07:00
Harald Albers
2e44e74874 Add support for multiple containers to bash completion for docker pause
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 14:24:59 +02:00
Harald Albers
3ac19862f2 Add bash completion for docker export --output
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 14:18:13 +02:00
Steve Durrheimer
11b6c4c58a
Add zsh completion for 'dockerd --experimental'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-10-25 11:26:39 +02:00
Harald Albers
e63f196536 Add bash completion for dockerd --experimental
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 10:04:48 +02:00
Harald Albers
28469b5720 Move bash completion logic to new subcommand: tag
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 09:57:47 +02:00
Harald Albers
18e8c59fbb Move bash completion logic to new subcommand: save
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 09:57:47 +02:00
Harald Albers
01c259e08a Move bash completion logic to new subcommand: rmi
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 09:57:47 +02:00
Harald Albers
2d139df59c Move bash completion logic to new subcommand: push
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 09:57:47 +02:00
Harald Albers
6864f3ae5a Move bash completion logic to new subcommand: pull
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 09:57:47 +02:00
Harald Albers
df486631bc Move bash completion logic to new subcommand: images
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 09:57:47 +02:00
Harald Albers
75aede3a7c Move bash completion logic to new subcommand: load
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-25 09:57:47 +02:00
Harald Albers
9eb1f55402 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>
2016-10-25 09:57:38 +02:00
Steve Durrheimer
94b6376ee5
Fix zsh completion for 'docker exec --env'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-10-25 09:05:07 +02:00
Steve Durrheimer
20890b4aad
Add zsh completion for 'dockerd --shutdown-timeout'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-10-25 08:59:23 +02:00
Steve Durrheimer
34f5d97468
Add zsh completion for 'docker {create,run} --stop-timeout'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-10-25 08:55:00 +02:00
Harald Albers
e93298650d Move bash completion logic to new subcommand: import
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-24 01:37:52 -07:00
Harald Albers
9059b9532e Move bash completion logic to new subcommand: history
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-24 01:37:52 -07:00
Harald Albers
db31883a92 Move bash completion logic to new subcommand: build
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-24 01:37:52 -07:00
Harald Albers
33910a89b9 Add bash completion for new docker image command family
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-24 01:37:52 -07:00
Harald Albers
4126229741 Fix bash completion for docker exec --env
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-22 08:14:59 -07:00
Aaron Lehmann
c9fdf9abf8 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>
2016-10-21 17:43:27 -07:00
Sebastiaan van Stijn
95c36b301b Merge pull request #27579 from albers/completion-container
Add bash completion for new `docker container` subcommands
2016-10-21 09:47:55 -07:00
Sebastiaan van Stijn
0c767f0a6c Merge pull request #27490 from caarlos0/editorconfig
added editorconfig
2016-10-21 09:15:17 -07:00
Harald Albers
93ccf95db1 Move bash completion logic to new subcommand: wait
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
f9a24c72ba Move bash completion logic to new subcommand: update
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
6ac201721f Move bash completion logic to new subcommand: unpause
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
4bab104761 Move bash completion logic to new subcommand: top
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
150dcabc0f Move bash completion logic to new subcommand: stop
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
19f31f8e48 Move bash completion logic to new subcommand: stats
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
2bbfd01e7a Move bash completion logic to new subcommand: start
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
5200d18dbf Move bash completion logic to new subcommand: run
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
9fc4670b3b Move bash completion logic to new subcommand: rm
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
58027826d4 Move bash completion logic to new subcommand: restart
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
96547d0e88 Move bash completion logic to new subcommand: port
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
48e75d4bc2 Move bash completion logic to new subcommand: port
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
27abd03059 Move bash completion logic to new subcommand: pause
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
a91fb558d2 Move bash completion logic to new subcommand: ps
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
4dedad3118 Move bash completion logic to new subcommand: logs
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
f1e12a4951 Move bash completion logic to new subcommand: kill
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
3cd9f22664 Move bash completion logic to new subcommand: inspect
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00
Harald Albers
3b6f6611b0 Move bash completion logic to new subcommand: diff
Signed-off-by: Harald Albers <github@albersweb.de>
2016-10-21 12:39:32 +02:00