1
0
mirror of https://github.com/docker/cli.git synced 2026-01-25 03:42:05 +03:00
Commit Graph

476 Commits

Author SHA1 Message Date
Harald Albers
a9e33d7f0c Remove bash completion for deprecated docker daemon
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 536a9ec698b8a2f51102b2c57cd9c675873b9af4
Component: engine
2016-12-19 11:40:59 -08:00
Harald Albers
a931db0d48 Remove bash completion for docker node ps --all|-a
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: a54cc4f88da67175938ac2a3d643e3de6cb4d4de
Component: engine
2016-12-18 06:31:25 -08:00
Victor Vieux
9883fe32f2 Merge pull request #29413 from albers/completion-deploy-experimental
Make bash completion for `docker stack deploy --bundle-file` available only in experimental mode
Upstream-commit: 9a30560fdaf1b86f58ae776d9578589752bbc5e5
Component: engine
2016-12-14 17:24:50 -08:00
Sebastiaan van Stijn
e2664ec347 Merge pull request #28943 from vdemeester/publish-long-short-syntax
Remove --port and update --publish for services to support syntaxes
Upstream-commit: 2fe62f2395b966af7f38e442a91c75d042bb3b65
Component: engine
2016-12-14 17:55:48 +01:00
Harald Albers
5a6d6a9103 Make bash completion for docker stack deploy --bundle-file experimental
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: a53bdfa3be6a821b5093919c55f6995e1df35680
Component: engine
2016-12-14 08:52:07 -08:00
Vincent Demeester
97f2808afa 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>
Upstream-commit: 75bf18c9f01d050e5fccab98fb671306c7c5f6d2
Component: engine
2016-12-11 23:14:54 +01:00
Harald Albers
1c812611da Add bash completion for docker inspect --type plugin
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 81b4b2b5fa098756149aa3f1c44715c5ccc08860
Component: engine
2016-12-10 13:31:42 -08:00
Harald Albers
281fa9ea35 Add bash completion for docker network create --attachable
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 8d2e789bbc59efa75d242457dba4b8651a1f9ace
Component: engine
2016-12-06 08:44:02 -08:00
Sebastiaan van Stijn
f1e558901f Merge pull request #29111 from albers/fix-completion-service-create-update
Fix bash completion for `docker service create|update
Upstream-commit: 2ef729460d756f5a49e63096c93d858ae8f7e38b
Component: engine
2016-12-05 15:16:23 +01:00
Brian Goff
b37431fe09 Merge pull request #29109 from albers/completion-secrets
Add bash completion for secret management
Upstream-commit: 602efb0cabeca0567551b950b0cac21e8caeb7cd
Component: engine
2016-12-05 09:13:26 -05:00
Harald Albers
ec683949ea Add bash completion for docker version --format
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 3d43c48c1bbb8eaa2be4ec0d6203183b0f55b9d9
Component: engine
2016-12-04 14:13:14 -08:00
Harald Albers
a51412a45d Fix bash completion for `docker service create|update
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: be5685e4bffc88a6cd3a093ee883c5335758266d
Component: engine
2016-12-04 12:11:33 -08:00
Harald Albers
e66fab77ad Add bash completion for secret management
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 324dd3cfec756109df58128376b888684d8cf521
Component: engine
2016-12-04 11:25:41 -08:00
Harald Albers
19eecae26c Add bash completion for experimental docker deploy
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 10f567ec6aaa059626bbe32eb8786bf5a4b447fc
Component: engine
2016-12-02 04:28:10 -08:00
Harald Albers
d154f4f76d Allow selective activation of experimental features in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: af84b7e4417b9b2cc90a8882b0874411e44abe76
Component: engine
2016-12-02 04:28:10 -08:00
Vincent Demeester
c7b13ddf55 Merge pull request #28944 from albers/completion-inspect-more-types
Add more types to bash completion of `docker inspect`
Upstream-commit: 849f659fd90c27b61b72ef9b0eba45edfe6bf85e
Component: engine
2016-11-30 22:28:13 +01:00
Alexander Morozov
cefbd9b7e9 Merge pull request #28885 from vdemeester/revert-service-ps-all
Revert "Add -a option to service/node ps"
Upstream-commit: 53d69aeb74962709464e0888f4a5c755be2c8e4d
Component: engine
2016-11-30 12:02:34 -08:00
Alexander Morozov
a66f1eed5f Merge pull request #28838 from AkihiroSuda/remove-run-mount
[Revert #26825] cli: remove `--mount` from `docker run`
Upstream-commit: caaa52c124539acb396c0b711ab95bc7ed459540
Component: engine
2016-11-30 11:56:42 -08:00
Alexander Morozov
c3350bbdd4 Merge pull request #28746 from albers/completion-stack
Add bash completion for `docker stack`
Upstream-commit: d9bd5aa1864e97b04f0f1723a275af87f4bcd19c
Component: engine
2016-11-30 11:53:46 -08:00
Harald Albers
afcc8b067c Add more types to bash completion of docker inspect
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 1076f0882b9eccb96850db6b1bc78020ada39e50
Component: engine
2016-11-29 09:45:43 -08:00
Vincent Demeester
23d4c1466c Revert "Add bash completion for docker service ps --all"
This reverts commit 188d2fac57d63888f08531adc46aa3349e3b4f3a.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: cee0fff9fe31da79fc45b9f7b42a2e6d1e25babe
Component: engine
2016-11-29 09:33:03 +01:00
Kenfe-Mickaël Laventure
283a98479d Merge pull request #28625 from albers/completion-plugins
Add bash completion for plugin API
Upstream-commit: 783d4ac6d40b48f40e752561c79e777b35c2c0a9
Component: engine
2016-11-28 08:56:53 -08:00
Harald Albers
8b597c0ef3 Add bash completion for docker service {create,update} host options
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f3b7f40aafb009a3779e94ec9b2a8de1e0ce96bc
Component: engine
2016-11-27 05:08:35 -08:00
Harald Albers
a0f0d908cc Add bash completion for plugin API
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: ecb707cb0f0ebb50fb1b90f4ab3c4ae611925ed2
Component: engine
2016-11-26 11:04:55 -08:00
Harald Albers
9b5ea3c1b2 Add bash completion for docker stack
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 16494a81f98632a67a9d10ee7892fe25a51d3de4
Component: engine
2016-11-26 10:45:07 -08:00
Akihiro Suda
8f7e98f07f cli: remove --mount from docker run
This commit reverts 273eeb813c1db0f42c2ad5e053972eeb00907568 (#26825).
For the discussion so far, please refer to #28527.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Upstream-commit: e6d9b7de649c0b3b59c7d9b698af1c58f6dce289
Component: engine
2016-11-26 04:55:28 +00:00
Harald Albers
66c7d1e16a Add bash completion for docker service update --hostname
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 9d98d6d8cb23a5078e2d81014620fdd390c32abf
Component: engine
2016-11-25 12:42:30 +01:00
Vincent Demeester
d6934ae086 Merge pull request #28343 from albers/completion-build--network
Add bash completion for `docker build --network`
Upstream-commit: 7ca953e66ef3f71e9b909edbc7f0f23e00494427
Component: engine
2016-11-22 09:29:42 +01:00
Sebastiaan van Stijn
39e4cf8c6c Merge pull request #28628 from albers/completion-images-f-reference
Add bash completion for `docker images --filter reference`
Upstream-commit: fff1885a4bb82f351c274939ad5469e3bb1e090b
Component: engine
2016-11-22 00:52:34 +01:00
Harald Albers
71a6f392dc Add bash completion for dockerd --userland-proxy-path
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 0d573a62f7e9b74621376cd5514462277bf341e9
Component: engine
2016-11-20 09:58:39 -08:00
Harald Albers
bdafa72599 Add bash completion for docker images --filter reference
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: e84d62f6cb3d0e578c6b876385ca3c8aa2d23b41
Component: engine
2016-11-19 13:05:51 -08:00
Sebastiaan van Stijn
516defc10d Merge pull request #28344 from albers/completion-service--ports
Add bash completion for managing ports in services
Upstream-commit: e129365fd371eba3fcf3d8e64bb1a12a297d0323
Component: engine
2016-11-14 12:40:36 +01:00
Yong Tang
8a0323e12b 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>
Upstream-commit: fb8404a3488bccfb4b318d279332946f370d1452
Component: engine
2016-11-13 19:12:01 -08:00
Akihiro Suda
e8319d6f50 Merge pull request #28362 from albers/completion-service-dns
Add bash completion for DNS settings in services
Upstream-commit: f39cb08209ceffcb3363ab1f46007f11cb287211
Component: engine
2016-11-14 05:42:24 +09:00
Vincent Demeester
829db7abcd Merge pull request #28360 from albers/completion-service-ps--all
Add bash completion for `docker service ps --all`
Upstream-commit: e649cc147630746b1e98424933ee457d3f0c7f46
Component: engine
2016-11-13 21:39:07 +01:00
Vincent Demeester
dfc6729ba9 Merge pull request #28342 from albers/completion-build--cache-from
Add bash completion for `docker build --cache-from`
Upstream-commit: 7220888b0988d4ddfc5fea783420e2dd4b26ff00
Component: engine
2016-11-13 21:34:55 +01:00
Harald Albers
d74191c744 Add bash completion for DNS settings in services
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 28dc8c863a810a5fce078319fb422caced67b725
Component: engine
2016-11-13 11:17:18 -08:00
Harald Albers
6be217cc5f Add bash completion for docker service ps --all
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 188d2fac57d63888f08531adc46aa3349e3b4f3a
Component: engine
2016-11-13 09:32:53 -08:00
Harald Albers
2116574cfe 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>
Upstream-commit: 279bd827fe3393b1790ef26e36a3a7f4260c0441
Component: engine
2016-11-13 04:57:37 -08:00
Harald Albers
9a718bf5f4 Fix bash completion for docker ps --filter is-task
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 7b6a38e1b1e146e4350db0e38d3d7a9313232ece
Component: engine
2016-11-13 04:54:54 -08:00
Harald Albers
f8098bf244 Add bash completion for docker build --network
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: d48e70843f2ea26c60b42165edbc9be8ace0d2d5
Component: engine
2016-11-12 10:32:08 -08:00
Harald Albers
f3c74eec0d Add bash completion for docker build --cache-from
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: c6357f04b5f30ac4d0e6712a05375013a8f7327e
Component: engine
2016-11-12 10:12:47 -08:00
Harald Albers
f1763d3779 Add bash completion for docker daemon --seccomp-profile
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 98a2071696d51479fb4d162ace95a9857a8a8643
Component: engine
2016-11-11 16:12:17 +01:00
Sebastiaan van Stijn
8bb2169ed5 Merge pull request #28186 from yongtang/27567-follow-up-dns-options
Add `--dns-option` to `docker run` and hide `--dns-opt`
Upstream-commit: 33af4dd505aac709d607d26fc19a16d3dffdd66e
Component: engine
2016-11-10 16:20:17 +01:00
Yong Tang
a8a11f6c62 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>
Upstream-commit: 9b6b3c2076911ea0a510548943180ac9d1b8c286
Component: engine
2016-11-09 12:13:25 -08:00
Harald Albers
df5a4e64bf Add bash completion for docker {node rm,swarm leave} -f
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: cc0c14aab72ce3377d9cfa02cfc05f262d99ecd7
Component: engine
2016-11-09 11:42:18 -08:00
Aaron Lehmann
f7b4103706 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>
Upstream-commit: 842d11f44cede2d7e9488e54f8ac8de89d8f4cd4
Component: engine
2016-11-08 13:14:01 -08:00
Harald Albers
08efaac2fe Add bash completion for docker service {create,update} --tty
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: bfd8f7a7e15a0a4eece33e545368e915470147e0
Component: engine
2016-11-08 09:13:23 +01:00
Akihiro Suda
9156f6f7cf Merge pull request #28093 from albers/completion-run--cpus
Add bash completion for `docker {run,create} --cpus`
Upstream-commit: de78ed432ba526ca463d191e3ac143bc107c00f5
Component: engine
2016-11-07 17:31:40 +09:00
Akihiro Suda
a76d4f99db Merge pull request #28094 from albers/completion-system-df
Add bash completion for `docker system df`
Upstream-commit: 67a247154c60ef924ca41a57f4720d4b9f3a5f65
Component: engine
2016-11-07 17:31:27 +09:00