Sebastiaan van Stijn
53b038fa76
Error if "until" filter is combined with "--volumes" on system prune
...
The "until" filter is supported by all object types, except for
volumes.
Before this patch, the "until" filter would attempted to be used for the volume
prune endpoint, resulting in an error being returned by the daemon, and
further prune endpoints (networks, images) to be skipped.
$ docker system prune --filter until=24h --filter label=label.foo=bar
WARNING! This will remove:
- all stopped containers
- all volumes not used by at least one container
- all networks not used by at least one container
- all dangling images
Are you sure you want to continue? [y/N] y
Error response from daemon: Invalid filter 'until'
Calling POST /v1.30/containers/prune?filters=%7B%22label%22%3A%7B%22label.foo%3D%3Dbar%22%3Atrue%7D%2C%22until%22%3A%7B%2224h%22%3Atrue%7D%7D
Calling POST /v1.30/volumes/prune?filters=%7B%22label%22%3A%7B%22label.foo%3D%3Dbar%22%3Atrue%7D%2C%22until%22%3A%7B%2224h%22%3Atrue%7D%7D
Handler for POST /v1.30/volumes/prune returned error: Invalid filter 'until'
Error response from daemon: Invalid filter 'until'
With this patch, an error is produced instead, preventing "partial" prune.
$ docker system prune --filter until=24h --filter label=foo==bar --volumes
ERROR: The "until" filter is not supported with "--volumes"
Note that `docker volume prune` does not have this problem, and produces an
error if the `until` filter is used;
$ docker volume prune --filter until=24h
WARNING! This will remove all volumes not used by at least one container.
Are you sure you want to continue? [y/N] y
Error response from daemon: Invalid filter 'until'
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: 3c095dc546
Component: cli
2017-07-21 12:11:53 +02:00
Vincent Demeester
98b6afc061
Merge pull request #369 from jphuynh/completion-zsh-get-log-options
...
Update __docker_get_log_options completion (zsh)
Upstream-commit: 33a25708d4
Component: cli
2017-07-21 11:25:17 +02:00
Vincent Demeester
9c4647a2a3
Merge pull request #368 from jphuynh/completion-zsh-system-prune-volumes
...
Add zsh completion for `system prune --volumes`
Upstream-commit: 814827ef0d
Component: cli
2017-07-21 11:20:59 +02:00
Vincent Demeester
4ea813dca9
Merge pull request #364 from ksouf/issue-37-add-connect-disconnect
...
adding connect disconnect network tests
Upstream-commit: 36b9edff7e
Component: cli
2017-07-21 11:19:23 +02:00
Sebastiaan van Stijn
96839aeeb6
Merge pull request #223 from ripcurld0/docs_cp_prm
...
Update the cp command docs to include archive
Upstream-commit: 25ca529388
Component: cli
2017-07-21 11:14:15 +02:00
Vincent Demeester
a6804951ed
Merge pull request #291 from thaJeztah/bump-swarmkit
...
Bump swarmkit and dependencies to 79381d0840be27f8b3f5c667b348a4467d866eeb
Upstream-commit: 472ce90624
Component: cli
2017-07-21 11:07:38 +02:00
Jean-Pierre Huynh
6adc7715ee
Update __docker_get_log_options completion
...
Signed-off-by: Jean-Pierre Huynh <jean-pierre.huynh@ounet.fr >
Upstream-commit: d7ade64d29
Component: cli
2017-07-20 23:41:47 +01:00
Jean-Pierre Huynh
a3b41349c5
Add zsh completion for system prune --volumes
...
Signed-off-by: Jean-Pierre Huynh <jean-pierre.huynh@ounet.fr >
Upstream-commit: 6b256484ae
Component: cli
2017-07-20 23:13:04 +01:00
Sebastiaan van Stijn
1dd2821aa2
Merge pull request #357 from ripcurld0/nat_sort_service
...
Sort services names in a natural order
Upstream-commit: dfbad2bc5a
Component: cli
2017-07-20 22:56:09 +02:00
khaled souf
69533b66d7
adding connect disconnect network tests
...
Signed-off-by: khaled souf <khaled.souf@gmail.com >
Upstream-commit: 7296abf39f
Component: cli
2017-07-20 18:53:03 +02:00
Daniel Nephin
384f10f42e
Fix shellcheck on master
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 14d2c95d4a
Component: cli
2017-07-20 12:11:27 -04:00
Daniel Nephin
0d67981907
Add myself to command/stack codeowners
...
Cleanup a test
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 60991e943b
Component: cli
2017-07-20 12:05:20 -04:00
Sebastiaan van Stijn
e02dded93f
Merge pull request #281 from albers/completion-plugin-ls--filter-capability
...
Add metric plugins to bash completion for `plugin ls --filter capability`
Upstream-commit: 45a7e1ca87
Component: cli
2017-07-20 13:39:51 +02:00
Sebastiaan van Stijn
23caa8b756
Merge pull request #280 from albers/completion-awslog-multiline
...
Add bash completion for awslogs multiline log driver options
Upstream-commit: ab05e0aa63
Component: cli
2017-07-20 13:39:10 +02:00
Vincent Demeester
c4357dce36
Merge pull request #332 from tych0/docs-fixups-for-password-stdin
...
Docs fixups for password stdin
Upstream-commit: 3d76febd17
Component: cli
2017-07-20 11:31:23 +02:00
Vincent Demeester
4a278a582f
Merge pull request #279 from albers/completion-build--iidfile
...
Add bash completion for `build --iidfile`
Upstream-commit: c394cd9bb7
Component: cli
2017-07-20 09:57:05 +02:00
Vincent Demeester
39842a2345
Merge pull request #284 from albers/completion-service--detach
...
Fix bash completion for `service create|update --detach|-d`
Upstream-commit: cc6867f456
Component: cli
2017-07-20 09:47:59 +02:00
Vincent Demeester
381747626c
Merge pull request #283 from albers/completion-configs
...
Add bash completion for `docker config` command family
Upstream-commit: a4d76989bd
Component: cli
2017-07-20 09:45:01 +02:00
Alex Mavrogiannis
82bb6886df
Skip inspects of built-in networks on stack deploy
...
Signed-off-by: Alex Mavrogiannis <alex.mavrogiannis@docker.com >
Upstream-commit: 7f53c99dfe
Component: cli
2017-07-19 19:39:44 -07:00
Boaz Shuster
c04822c682
Sort services names in a natural order
...
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com >
Upstream-commit: 7478e47b2d
Component: cli
2017-07-19 18:18:06 +03:00
Daniel Nephin
e4c6e38322
Fix CODEOWNERS patterns.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: cea8b4f4f3
Component: cli
2017-07-18 18:25:55 -04:00
Tycho Andersen
70f1e387d9
fish completion: add --password-stdin
...
Signed-off-by: Tycho Andersen <tycho@docker.com >
Upstream-commit: 3b7b6b5f7f
Component: cli
2017-07-18 15:25:46 -06:00
Tycho Andersen
231e3a605b
zsh completion: add --password-stdin
...
Signed-off-by: Tycho Andersen <tycho@docker.com >
Upstream-commit: 90619e5054
Component: cli
2017-07-18 15:25:46 -06:00
Tycho Andersen
3ddb21c1b1
bash completion: add --password-stdin
...
Signed-off-by: Tycho Andersen <tycho@docker.com >
Upstream-commit: bbfe23f9e6
Component: cli
2017-07-18 15:25:46 -06:00
Tycho Andersen
9fab9786f4
docs: add --password-stdin
...
also add an example of usage
Signed-off-by: Tycho Andersen <tycho@docker.com >
Upstream-commit: 3e392505a8
Component: cli
2017-07-18 15:25:46 -06:00
Daniel Nephin
7c2dc55ca3
Remove unnecessary prune function aliases.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: ff350a04cb
Component: cli
2017-07-18 12:25:45 -04:00
Daniel Nephin
29e4b6071d
Cleanup dockerfiles and circle
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 0f91d9e6c4
Component: cli
2017-07-18 12:22:28 -04:00
Vincent Demeester
c912542d4f
Merge pull request #350 from thaJeztah/unexport-commands
...
Unexport subcommands
Upstream-commit: a14762c6d2
Component: cli
2017-07-18 17:17:01 +02:00
Sebastiaan van Stijn
ea84db7e56
Unexport subcommands
...
These commands were only used as subcommands, so did
not have to be exported.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: 9c7b0d74cd
Component: cli
2017-07-18 15:26:45 +02:00
Sebastiaan van Stijn
7e5b932e43
Small refactor in system prune
...
Adapt "image prune" and "build cache prune" to have
the same signature as the other prune commands, so
that they can all be added to the "pruneFuncs" array.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: 73163ee78b
Component: cli
2017-07-18 15:13:11 +02:00
Sebastiaan van Stijn
6250958cd7
Merge pull request #315 from ripcurld0/nat_sort
...
Sort swarm stacks and nodes using natural sorting
Upstream-commit: 79e4d635ca
Component: cli
2017-07-18 15:01:11 +02:00
Kenfe-Mickaël Laventure
6db8c53375
Merge pull request #345 from vdemeester/remove-prune-package
...
Remove useless prune package 👼
Upstream-commit: 19efbc85f4
Component: cli
2017-07-18 14:46:53 +02:00
Vincent Demeester
b7e7973a5f
Merge pull request #266 from jphuynh/shellcheck
...
Add shellcheck for bash completion
Upstream-commit: b75596e1e4
Component: cli
2017-07-18 09:59:07 +02:00
Vincent Demeester
8dbc530b62
Remove useless prune package 👼
...
The `cli/command/prune` just does some aliasing of `Prune*` methods,
doesn't have any use.
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
Upstream-commit: 3f4d91508e
Component: cli
2017-07-18 09:49:02 +02:00
Sebastiaan van Stijn
2dc557d71e
Fix: skip build-cache prune on unsupported versions
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: 6c3a448ecb
Component: cli
2017-07-17 11:55:35 +02:00
Sebastiaan van Stijn
72d8e914bc
Merge pull request #331 from yuexiao-wang/docker-search-filters
...
Fix filters displaying for docker search
Upstream-commit: 03a46a66bd
Component: cli
2017-07-14 23:30:43 -07:00
Sebastiaan van Stijn
c6415e10ce
Merge pull request #314 from allencloud/add-filter-scope-for-events
...
docs: add filter scope for command events and more cluster events
Upstream-commit: 47370b4863
Component: cli
2017-07-14 23:28:55 -07:00
Sebastiaan van Stijn
42cbae8c65
Service privileges: CLI reference docs & completion
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Upstream-commit: 5cc7ac2990
Component: cli
2017-07-14 22:30:47 -07:00
allencloud
c456febc9c
docs: add filter scope for command events and more cluster events
...
Signed-off-by: allencloud <allen.sun@daocloud.io >
Upstream-commit: 8639c9baf8
Component: cli
2017-07-15 09:17:35 +08:00
Daniel Nephin
d85711734b
More about ARG and build stages.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: ad5d035988
Component: cli
2017-07-14 16:59:21 -04:00
Daniel Nephin
0b42de4e27
Clarify docs about ARG in FROM
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 2880030814
Component: cli
2017-07-14 16:55:42 -04:00
Lei Jitang
0667ef33f8
Add DOCKER_BUILD_ARGS to support build with proxy
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: 7d8681fadb
Component: cli
2017-07-14 05:20:18 -04:00
Jean-Pierre Huynh
5aee375eb4
Fix inconsistencies
...
Signed-off-by: Jean-Pierre Huynh <jean-pierre.huynh@ounet.fr >
Upstream-commit: d7748e1b01
Component: cli
2017-07-14 09:24:46 +01:00
Aleksa Sarai
becbfbd6d3
docs: add documentation for dm.libdm_log_level
...
This is a new option added specifically to allow for debugging of bugs
in Docker's storage drivers or libdm itself.
Signed-off-by: Aleksa Sarai <asarai@suse.de >
Upstream-commit: c7710819a5
Component: cli
2017-07-14 16:52:33 +10:00
yuexiao-wang
d96f150bfb
Fix filters displaying for docker search
...
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn >
Upstream-commit: bd64ad25fb
Component: cli
2017-07-14 08:56:20 +08:00
Jean-Pierre Huynh
33db8883ea
Fix code location when mounting to docker-cli-shell-validate
...
Signed-off-by: Jean-Pierre Huynh <jean-pierre.huynh@ounet.fr >
Upstream-commit: ffe8509663
Component: cli
2017-07-13 22:24:08 +01:00
Jean-Pierre Huynh
cbcb37cde8
Update dockerfile path for CicleCI build
...
Signed-off-by: Jean-Pierre Huynh <jean-pierre.huynh@ounet.fr >
Upstream-commit: 501cf0e6d1
Component: cli
2017-07-13 22:24:08 +01:00
Jean-Pierre Huynh
dc6c9cd967
Reword to remove ambiguity with go validate
...
Signed-off-by: Jean-Pierre Huynh <jean-pierre.huynh@ounet.fr >
Upstream-commit: 2e7d24cae8
Component: cli
2017-07-13 22:24:08 +01:00
Jean-Pierre Huynh
a61c7f009e
Add shellcheck for bash completion
...
Signed-off-by: Jean-Pierre Huynh <jean-pierre.huynh@ounet.fr >
Upstream-commit: b2fc35aefa
Component: cli
2017-07-13 22:24:08 +01:00
Boaz Shuster
a090086ff6
Sort swarm stacks and nodes using natural sorting
...
This commit changes the order stacks and nodes are displayed.
For example, running "docker stack ls" is expected to
display the following list:
NAME SERVICES
service-1 1
service-2 1
service-10 1
However, currently this is what is printed:
NAME SERVICES
service-1 1
service-10 1
service-2 1
To fix this, "docker stack ls" and "docker node ls" are using
natural sorting to make it more human readable.
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com >
Upstream-commit: 1333b49194
Component: cli
2017-07-13 14:33:02 +03:00