Commit Graph

580 Commits

Author SHA1 Message Date
74de856edc Rename Remote API to Engine API
Implementation of https://github.com/docker/docker/issues/28319

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Upstream-commit: 2cfcc8a8fa
Component: cli
2017-06-02 00:10:40 +00:00
6b535bc2c3 Add zsh completion for 'docker image ls --filter reference'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: f3c9cdadd3
Component: cli
2017-06-02 00:10:40 +00:00
e520b24e1f Add zsh completion for 'dockerd --userland-proxy-path'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: b47e3d3adf
Component: cli
2017-06-02 00:10:40 +00:00
5751a326a2 Add bash completion for docker build --network
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 5b6fdb11a8
Component: cli
2017-06-02 00:10:40 +00:00
e6484ce0e7 Add bash completion for docker images --filter reference
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: cb0862f411
Component: cli
2017-06-02 00:10:40 +00:00
e2ee18f556 Add bash completion for dockerd --userland-proxy-path
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: d1071533a6
Component: cli
2017-06-02 00:10:39 +00:00
aae06b66cd Add zsh completion for 'docker system df'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: b1948be830
Component: cli
2017-06-02 00:10:39 +00:00
f3c30dce8d Add zsh completion for 'docker image build --network'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 4225bbc8b1
Component: cli
2017-06-02 00:10:38 +00:00
c80f1d61bd Add zsh completion for 'docker service' DNS settings
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 937c0e3fb6
Component: cli
2017-06-02 00:10:38 +00:00
17e2c4ef4a Add zsh completion for 'docker service {create,update} --secret'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: d9de308caa
Component: cli
2017-06-02 00:10:38 +00:00
fbcac7bead 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: c9afee3afa
Component: cli
2017-06-02 00:10:38 +00:00
89fa0b58ba Add zsh completion for the new 'docker secret' command
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 0f6fa225d1
Component: cli
2017-06-02 00:10:38 +00:00
8d1de69765 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: 653c6d8467
Component: cli
2017-06-02 00:10:38 +00:00
c0d69c15cb Add bash completion for DNS settings in services
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 5e47e48ff8
Component: cli
2017-06-02 00:10:38 +00:00
76b7581484 Add bash completion for docker service ps --all
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: fc7c7b1358
Component: cli
2017-06-02 00:10:38 +00:00
1a05c79390 Add zsh completion for 'docker service {create --port, update --port-{add,rm}}'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 4b3dd70b54
Component: cli
2017-06-02 00:10:38 +00:00
1cc3e47b3d Add zsh completion for 'docker image build --cache-from'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: fd70b3c283
Component: cli
2017-06-02 00:10:38 +00:00
501f6061eb Add bash completion for docker build --cache-from
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 7c22a4d86c
Component: cli
2017-06-02 00:10:38 +00:00
a3738ca83f Fix bash completion for docker ps --filter is-task
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 5890dd64eb
Component: cli
2017-06-02 00:10:37 +00:00
5116256089 Add bash completion for docker daemon --seccomp-profile
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 7fd207836d
Component: cli
2017-06-02 00:10:37 +00:00
0480a7a148 Add zsh completion for 'docker {node rm,swarm leave} -f'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 63545ecf95
Component: cli
2017-06-02 00:10:37 +00:00
be3bff6967 Add zsh completion for 'docker daemon --seccomp-profile'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 071348d392
Component: cli
2017-06-02 00:10:37 +00:00
1a5e1fa61d Add zsh completion for 'docker service {create,update} --tty'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: e3f47c4a55
Component: cli
2017-06-02 00:10:37 +00:00
1a51c21e82 Add zsh completion for 'docker service create --hostname'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 6073e433cd
Component: cli
2017-06-02 00:10:37 +00:00
37a618fa53 Add zsh completion for 'docker {run,create} --cpus'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 09cb462754
Component: cli
2017-06-02 00:10:37 +00:00
707a0677d1 Add zsh completion for new prune commands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: f2e2ba5d43
Component: cli
2017-06-02 00:10:36 +00:00
42b0828b16 Add zsh completion for 'docker system' subcommands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 9af599ffc5
Component: cli
2017-06-02 00:10:36 +00:00
890a070951 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: ebacbb50ae
Component: cli
2017-06-02 00:10:36 +00:00
58a839ab9c Add bash completion for docker {node rm,swarm leave} -f
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: e64c21b045
Component: cli
2017-06-02 00:10:36 +00:00
5889dbe02c Cleanup after moving all zsh completion logics for the new image command
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: cd0ef2a337
Component: cli
2017-06-02 00:10:35 +00:00
ac2f7aaada Move zsh completion logic to new subcommand: tag
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: e3711a11f2
Component: cli
2017-06-02 00:10:35 +00:00
88eb1278b1 Move zsh completion logic to new subcommand: save
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: a3e4ac1d2f
Component: cli
2017-06-02 00:10:35 +00:00
54c083f642 Move zsh completion logic to new subcommand: rm
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: f812608ff4
Component: cli
2017-06-02 00:10:35 +00:00
40b0478089 Move zsh completion logic to new subcommand: push
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 82dfd60819
Component: cli
2017-06-02 00:10:35 +00:00
d748664847 Move zsh completion logic to new subcommand: pull
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: e3d224e520
Component: cli
2017-06-02 00:10:35 +00:00
218491349e Move zsh completion logic to new subcommand: ls
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 47364fcb71
Component: cli
2017-06-02 00:10:35 +00:00
85ecb9d40c Move zsh completion logic to new subcommand: load
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: e21d331b1e
Component: cli
2017-06-02 00:10:35 +00:00
4d6fb4330b Add zsh completion logic to new subcommand: inspect
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 8fa658335b
Component: cli
2017-06-02 00:10:35 +00:00
3ddf6bee0b Move zsh completion logic to new subcommand: import
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: f8829f20b4
Component: cli
2017-06-02 00:10:35 +00:00
aac306431a Move zsh completion logic to new subcommand: history
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 4d4d5b199e
Component: cli
2017-06-02 00:10:35 +00:00
66bf8447c2 Move zsh completion logic to new subcommand: build
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 9d35c2f68b
Component: cli
2017-06-02 00:10:35 +00:00
5e3157da02 Add zsh completion for 'docker image' subcommands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: fafe5a16f3
Component: cli
2017-06-02 00:10:35 +00:00
6e578c3945 Rename zsh images & log complete functions
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: e8388b10d6
Component: cli
2017-06-02 00:10:35 +00:00
3cfa043d6e 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: 49b6be893c
Component: cli
2017-06-02 00:10:34 +00:00
e0f3694584 Cleanup after moving all zsh completion logics for the new container command
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 53846847ba
Component: cli
2017-06-02 00:10:34 +00:00
78af9de521 Move zsh completion logic to new subcommand: wait
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: dab4176180
Component: cli
2017-06-02 00:10:34 +00:00
0c6f9f1c31 Move zsh completion logic to new subcommand: update
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 643725b6a8
Component: cli
2017-06-02 00:10:34 +00:00
bb1dc27571 Move zsh completion logic to new subcommand: top
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: fe0cfed70c
Component: cli
2017-06-02 00:10:34 +00:00
16ec789afc Move zsh completion logic to new subcommand: stop
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 8361fc40e7
Component: cli
2017-06-02 00:10:34 +00:00
85365f2838 Move zsh completion logic to new subcommand: stats
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 5323c46677
Component: cli
2017-06-02 00:10:34 +00:00