1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00
Commit Graph

2466 Commits

Author SHA1 Message Date
Aaron Lehmann
bf4beaf856 Add support for update order
This parameter controls the order of operations when rolling out an
update task. Either the old task is stopped before starting the new one,
or the new task is started first, and the running tasks will briefly
overlap.

This commit adds Rollout to the API, and --update-order / --rollback-order
flags to the CLI.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: e434a91221
Component: cli
2017-06-02 00:11:02 +00:00
Elias Faxö
429d548d41 Added start period option to health check.
Signed-off-by: Elias Faxö <elias.faxo@gmail.com>
Upstream-commit: c5071b94da
Component: cli
2017-06-02 00:11:02 +00:00
Pratik Karki
30106d6b7c updated Readme.md with fixed deadlinks
Signed-off-by: prertik <prertik@outlook.com>
Upstream-commit: 4273ca3678
Component: cli
2017-06-02 00:11:02 +00:00
Akihiro Suda
150b832bdf cli: add --mount to docker run
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Upstream-commit: 6103806802
Component: cli
2017-06-02 00:11:02 +00:00
Misty Stanley-Jones
3139e744d9 Edits to CLI reference
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: 95c05a53c6
Component: cli
2017-06-02 00:11:01 +00:00
Yong Tang
f46fcd68d4 Add hidden placeholder of .Self for docker node ls --format
This commit adds a hidden placeholder of `.Self` for
`docker node ls --format` so that if the node is the same
as the current docker daemon, then a `*` is outputed.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 45f80dccb0
Component: cli
2017-06-02 00:11:01 +00:00
Yong Tang
b36d931653 Add --format for docker node ls
This fix tries to address the comment https://github.com/docker/docker/pull/30376#discussion_r97465334
where it was not possible to specify `--format` for `docker node ls`. The `--format` flag
is a quite useful flag that could be used in many places such as completion.

This fix implements `--format` for `docker node ls` and add `nodesFormat` in config.json
so that it is possible to specify the output when `docker node ls` is invoked.

Related documentations have been updated.

A set of unit tests have been added.

This fix is related to #30376.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 477ec9bfdd
Component: cli
2017-06-02 00:11:01 +00:00
Misty Stanley-Jones
4543d90ce0 Escape some double brackets
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: 0e86bfb1e0
Component: cli
2017-06-02 00:11:01 +00:00
Karthik Nayak
8905ea0e0f Docs: Add the flag --api-enable-cors to deprecated.md
Signed-off-by: Karthik Nayak <Karthik.188@gmail.com>
Upstream-commit: ff44ffc576
Component: cli
2017-06-02 00:11:01 +00:00
Yong Tang
b8a1f0d4a7 Add PORTS field for docker service ls (ingress)
This fix is related to 30232 wherw `docker service ls`
does not show `PORTS` information like `docker service ps`.

This fix adds `PORTS` fields for services that publish
ports in ingress mode.

Additional unit tests cases have been updated.

This fix is related to 30232.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 04afeb636e
Component: cli
2017-06-02 00:11:01 +00:00
徐俊杰
6d717fcaf7 fix documentation error: volume-opt in service create
Signed-off-by: pacoxu<paco.xu@daocloud.io>
Signed-off-by: pacoxu <paco.xu@daocloud.io>
Upstream-commit: 764c84342d
Component: cli
2017-06-02 00:11:01 +00:00
Aaron Lehmann
dc4ce81f2b Synchronous service create and service update
Change "service create" and "service update" to wait until the creation
or update finishes, when --detach=false is specified. Show progress bars
for the overall operation and for each individual task (when there are a
small enough number of tasks), unless "-q" / "--quiet" is specified.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: c8e607205f
Component: cli
2017-06-02 00:11:01 +00:00
Harald Albers
3fd631d927 Improve bash completion for --log-opt awslogs-create-group
Add completion for the possible values `true`|`false`, correct sort order.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 1a9663696d
Component: cli
2017-06-02 00:11:01 +00:00
Harald Albers
f09c3fdc31 Add bash completion for secret ls --format
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 10638a7a3e
Component: cli
2017-06-02 00:11:01 +00:00
Steve Durrheimer
4cb2ae0424 Add zsh completion for 'docker {node,service,stack} ps --format'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 5ef17bfc68
Component: cli
2017-06-02 00:11:01 +00:00
Sebastiaan van Stijn
cdb0625836 Merge pull request #32265 from breuner/patch-1
Updated legacy_plugins.md to include BeeGFS plugin
(cherry picked from commit d0057bd12dae5276b83e931e9e9ea185c58486a2)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 82f097e8d5
Component: cli
2017-06-02 00:11:01 +00:00
Misty Stanley-Jones
0965592358 Clarify meaning of docker attach
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: 05bc162dc4
Component: cli
2017-06-02 00:11:01 +00:00
Sebastiaan van Stijn
80eee6383e Add conflict check for flags, and update deprecation versions
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 356d08b14c
Component: cli
2017-06-02 00:11:01 +00:00
Josh Hawn
c7388169b9 Deprecate --graph flag; Replace with --data-root
Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
Upstream-commit: 804858fc6f
Component: cli
2017-06-02 00:11:01 +00:00
Vincent Demeester
9fe583a7b5 Add support for --type=secret in docker inspect
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 578a431fb3
Component: cli
2017-06-02 00:11:01 +00:00
yuexiao-wang
5ade5c44d6 provide examples
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
Upstream-commit: 2bc240c0f2
Component: cli
2017-06-02 00:11:01 +00:00
Harald Albers
02fcc93a88 Add bash completion for secret ls --format
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: c6875037bb
Component: cli
2017-06-02 00:11:01 +00:00
yuexiao-wang
34a6afcc71 fix inconsistency for
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
Upstream-commit: 9bd9b918be
Component: cli
2017-06-02 00:11:00 +00:00
JimGalasyn
93d2fdc531 Delete extraneous H1 title
Signed-off-by: JimGalasyn <jim.galasyn@docker.com>
Upstream-commit: 64704a2a80
Component: cli
2017-06-02 00:11:00 +00:00
Ian Philpot
e804e2fa1d Updated push.md with progress bar info
Signed-off-by: Ian Philpot <ian.philpot@microsoft.com>
Upstream-commit: d5e7e1c70c
Component: cli
2017-06-02 00:11:00 +00:00
Misty Stanley-Jones
ba598c6bca Update docs for experimental features
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 2e9e71f59a
Component: cli
2017-06-02 00:11:00 +00:00
David Xia
3257e02aa9 [docs] Fix incorrect docker inspect example
Fixed incorrect `docker inspect` example in docs.
Verify by running the old and new commands.

fixes #31900

Signed-off-by: David Xia <dxia@spotify.com>
Upstream-commit: 5840993e1c
Component: cli
2017-06-02 00:11:00 +00:00
allencloud
c4a039752b make secret ls support filters in CLI
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 4903dd2ca2
Component: cli
2017-06-02 00:11:00 +00:00
Greg Pflaum
31de8f75fc Fix indenting in table of contents
Fixes #30841. The "filter" section had the wrong header size, which
caused sections following it to have the wrong indentation in the
right-side table of contents.

Signed-off-by: Greg Pflaum <gpflaum@users.noreply.github.com>
Upstream-commit: a616b0c305
Component: cli
2017-06-02 00:11:00 +00:00
allencloud
6af7feccba specify max size for secret in doc
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 87f6e631ea
Component: cli
2017-06-02 00:11:00 +00:00
EG Noriega
232ce24f41 Add details for inspect command usage
Signed-off-by: Eric G. Noriega <egnoriega@users.noreply.github.com>
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 3c6718905c
Component: cli
2017-06-02 00:11:00 +00:00
Vincent Demeester
95fb350c65 Add cli reference docs for root-level commands
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: b8d3480fc0
Component: cli
2017-06-02 00:11:00 +00:00
mapk0y
62bec22353 Update "man" of docker-run
Signed-off-by: mapk0y <mapk0y@gmail.com>
Upstream-commit: 06428a4955
Component: cli
2017-06-02 00:11:00 +00:00
Steve Durrheimer
9f1816c866 Add zsh completion for 'docker network ls --filter scope'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 91d886adc4
Component: cli
2017-06-02 00:11:00 +00:00
Steve Durrheimer
fdceadb4d7 Add missing zsh completion for 'docker plugin ls'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 51a4fbbf1f
Component: cli
2017-06-02 00:11:00 +00:00
erxian
ce0ae547ae refine docs to describe experimental feature docker build --squash
Signed-off-by: erxian <evelynhsu21@gmail.com>
Upstream-commit: ab4ce19224
Component: cli
2017-06-02 00:11:00 +00:00
Alessandro Boch
18a997b49c Allow user to modify ingress network
Signed-off-by: Alessandro Boch <aboch@docker.com>
Upstream-commit: bf7ba6964b
Component: cli
2017-06-02 00:11:00 +00:00
John Howard (VM)
4cadaa01c4 Windows: Remove --credentialspec flag
Signed-off-by: John Howard (VM) <jhoward@ntdev.microsoft.com>
Upstream-commit: a10f63f0ce
Component: cli
2017-06-02 00:11:00 +00:00
uhayate
c4bcd559a8 update 3 old docs about secret in docs/reference/commandline/
Signed-off-by: uhayate <uhayate.gong@daocloud.io>
Upstream-commit: da2f4802b6
Component: cli
2017-06-02 00:10:59 +00:00
Harald Albers
3823a21d86 Add bash completion for network ls --filter scope
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: d9a648caed
Component: cli
2017-06-02 00:10:59 +00:00
Yong Tang
1624cade76 Add --filter scope=swarm|local for docker network ls
This fix tries to address the request in 31324 by adding
`--filter scope=swarm|local` for `docker network ls`.

As `docker network ls` has a `SCOPE` column by default,
it is natural to add the support of `--filter scope=swarm|local`.

This fix adds the `scope=swarm|local` support for
`docker network ls --filter`.

Related docs has been updated.

Additional unit test cases have been added.

This fix fixes 31324.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 6f22676f0b
Component: cli
2017-06-02 00:10:59 +00:00
Steve Durrheimer
e95348fabd Add zsh completion for 'docker service ls --filter mode'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 9be3a2cec8
Component: cli
2017-06-02 00:10:59 +00:00
Steve Durrheimer
c2401dd7de Add zsh completion for 'docker secret ls --format'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 396925bab0
Component: cli
2017-06-02 00:10:59 +00:00
Steve Durrheimer
1629ef044b Add zsh completion for 'docker service {create,update} --rollback-*'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 4cb6ab4eb5
Component: cli
2017-06-02 00:10:59 +00:00
Steve Durrheimer
bb72ecdf9a Add zsh completion for 'docker logs --no-task-ids --no-trunc'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: a7af767c0d
Component: cli
2017-06-02 00:10:59 +00:00
Steve Durrheimer
1116d4a8b0 Add zsh completion for 'docker service {create,update} --stop-signal'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 7931960ded
Component: cli
2017-06-02 00:10:59 +00:00
Steve Durrheimer
26034416e6 Add zsh completion for 'docker network inspect --verbose'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 80482d7f96
Component: cli
2017-06-02 00:10:59 +00:00
Steve Durrheimer
759c5407ed Add zsh completion for 'docker build --add-host'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 9a46875a95
Component: cli
2017-06-02 00:10:59 +00:00
Steve Durrheimer
37fbe0e3bd Add zsh completion for 'docker service {create,update} --placement-pref'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 0e6eb9976b
Component: cli
2017-06-02 00:10:59 +00:00
Anusha Ragunathan
8d5753a63e Add pid host support
Tested using global-net-plugin-ipc which sets PidHost in config.json.

Plugins might need access to host pid namespace. Add support for that.
Tested using aragunathan/global-net-plugin-ipc which sets "pidhost" in
config.json. Observed using `readlink /proc/self/ns/pid` that plugin and
host have the same ns.

Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
Upstream-commit: c9f1050226
Component: cli
2017-06-02 00:10:59 +00:00