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

2350 Commits

Author SHA1 Message Date
Andrew McDonnell
e62d9d7004 Fix whitespace error.
Signed-off-by: Andrew McDonnell <bugs@andrewmcdonnell.net>
Upstream-commit: 5140cef92a
Component: cli
2017-06-02 00:10:55 +00:00
Daniel Zhang
400bf05854 Add daemon flag to set no_new_priv as default for unprivileged containers.
Signed-off-by: Daniel Zhang <jmzwcn@gmail.com>
Upstream-commit: 218740abc7
Component: cli
2017-06-02 00:10:55 +00:00
Yong Tang
bc16584b47 Add --format to docker service ps
This fix tries to address the issue raised in 27189 where
it is not possible to support configured formatting stored in
config.json.

Since `--format` was not supported in `docker service ps`,
the flag `--format` has also been added in this fix.

This fix
1. Add `--format` to `docker service ps`
2. Add `tasksFormat` to config.json
3. Add `--format` to `docker stack ps`
4. Add `--format` to `docker node ps`

The related docs has been updated.

An integration test has been added.

This fix fixes 27189.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 1328bb4440
Component: cli
2017-06-02 00:10:55 +00:00
Aaron.L.Xu
d75af760e9 why there are so many mistakes in our repo (up to /cmd)
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
Upstream-commit: 8279870a1f
Component: cli
2017-06-02 00:10:55 +00:00
Kenfe-Mickael Laventure
a1fc8b3905 Add example for --device-cgroup-rule to create reference
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: dd6886657d
Component: cli
2017-06-02 00:10:55 +00:00
Misty Stanley-Jones
4ddd044359 Fix some Liquid errors
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: f36bcf1acd
Component: cli
2017-06-02 00:10:55 +00:00
Steve Durrheimer
53eb368255 Add zsh completion for docker log options 'max-buffer-size|mode'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 8c14c4f001
Component: cli
2017-06-02 00:10:55 +00:00
Misty Stanley-Jones
5c08d35278 Update plugin_volume apidocs for v2
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: 38ac6860eb
Component: cli
2017-06-02 00:10:55 +00:00
Anusha Ragunathan
be42fef480 Add plugin socket related debug docs.
Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
Upstream-commit: ab7522c939
Component: cli
2017-06-02 00:10:55 +00:00
Harald Albers
e990a45379 Fix bash completion for start --checkpoint
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f004bb9cf9
Component: cli
2017-06-02 00:10:55 +00:00
Steve Durrheimer
aa0cc42243 Add zsh completion for 'docker service logs' command
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 924aff0cd4
Component: cli
2017-06-02 00:10:55 +00:00
Steve Durrheimer
14c4467684 Add zsh completion for 'docker checkpoint' commands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 6108385baa
Component: cli
2017-06-02 00:10:54 +00:00
Steve Durrheimer
07f5778f94 Add zsh completion for missing 'docker plugin' commands and options
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: d5c236ca20
Component: cli
2017-06-02 00:10:54 +00:00
Steve Durrheimer
b41c5d712a Fix useless trailing backslash in zsh completion
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: a93d410af7
Component: cli
2017-06-02 00:10:54 +00:00
Steve Durrheimer
f7828d31ba Add cache invalidation in zsh completion when the DOCKER_HIDE_LEGACY_COMMANDS envvar changes
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 8691d0dd68
Component: cli
2017-06-02 00:10:54 +00:00
Tianon Gravi
b62be1dbab Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash"
This is especially important for distributions like NixOS where `/bin/bash` doesn't exist, or for MacOS users who've installed a newer version of Bash than the one that comes with their OS.

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Upstream-commit: e6a4e7507c
Component: cli
2017-06-02 00:10:54 +00:00
Harald Albers
f742188241 Add bash completion for docker plugin upgrade
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f2aab00321
Component: cli
2017-06-02 00:10:54 +00:00
Harald Albers
2d75a5d4da Fix bash completion for --log-opt mode
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: af095f572e
Component: cli
2017-06-02 00:10:54 +00:00
Steve Durrheimer
a725b24df3 Add zsh completion for 'docker {service ls,stack services} --format'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: f8462e533e
Component: cli
2017-06-02 00:10:54 +00:00
Steve Durrheimer
5198d702bc Add zsh completion for 'docker {ps,service ls} --filter expose|publish'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: d36a82bcaf
Component: cli
2017-06-02 00:10:54 +00:00
Steve Durrheimer
b90b87733a Add zsh completion for 'dockerd --default-shm-size'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: e4c858dba4
Component: cli
2017-06-02 00:10:54 +00:00
Steve Durrheimer
282cc0b3cb Add zsh completion for 'docker build --squash'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 58ef5d4760
Component: cli
2017-06-02 00:10:54 +00:00
yupengzte
0efa0b9b49 fix typo
Signed-off-by: yupengzte <yu.peng36@zte.com.cn>
Upstream-commit: 225c67f074
Component: cli
2017-06-02 00:10:54 +00:00
Yong Tang
914cef8159 Add missing link in deprecated.md
This fix adds a missing link in deprecated.md
```
Deprecated In Release: [v1.13.0]...
```

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: ecc4938091
Component: cli
2017-06-02 00:10:54 +00:00
Steve Durrheimer
e120edc8e0 Add zsh completion for 'docker swarm unlock|unlock-key' commands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: acff7d285d
Component: cli
2017-06-02 00:10:54 +00:00
Steve Durrheimer
ae910fdbcf Add zsh completion for missing 'docker swarm init|update' options
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 620247aab4
Component: cli
2017-06-02 00:10:54 +00:00
Misty Stanley-Jones
07b8086695 Define bridge networks
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: 022d972c38
Component: cli
2017-06-02 00:10:54 +00:00
allencloud
dde4ebbb22 add expose and publish filter in swagger.yml and CLI docs for docker/master
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 1507e86ada
Component: cli
2017-06-02 00:10:54 +00:00
allencloud
714b8afe3a add missing filter type and sort filter type in alphabets
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 4113925b25
Component: cli
2017-06-02 00:10:53 +00:00
Misty Stanley-Jones
020523b38b Standardized formatting of CLI reference commands
Command name should be a H1

Only Description, Examples, and Related Commands should be H2

Changed 'Related information' heading to 'Related commands' since 99% it is only linking commands

Added some examples where relevant

Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: ddadd3db49
Component: cli
2017-06-02 00:10:53 +00:00
Misty Stanley-Jones
a34431061a Removed unused image
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: cf4b3715ed
Component: cli
2017-06-02 00:10:53 +00:00
Misty Stanley-Jones
021a712fcb Add info about the relationship between swarm leave and node rm
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: c2893a6e1c
Component: cli
2017-06-02 00:10:53 +00:00
allencloud
de4235c225 update events related doc and swagger.yml
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: d84da237bf
Component: cli
2017-06-02 00:10:53 +00:00
Anusha Ragunathan
7805da2f23 Add plugin debug docs.
Doc fix for #30761

Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
Upstream-commit: c76dcd33f7
Component: cli
2017-06-02 00:10:53 +00:00
Harald Albers
f0550de5d1 Improve bash completion for docker plugin enable|disable
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 221d15877d
Component: cli
2017-06-02 00:10:53 +00:00
Yong Tang
a4e4b607e4 Update API history and man page for --filter expose/publish
This fix updates API history and man page for
`docker ps --filter expose/publish`, from the feedback:
https://github.com/docker/docker/pull/27557#issuecomment-276832876

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: d77db0bd9a
Component: cli
2017-06-02 00:10:53 +00:00
Harald Albers
2a1922b8e3 Add bash completion for docker ps --filter expose|publish
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f1cef9c7ab
Component: cli
2017-06-02 00:10:53 +00:00
Harald Albers
1284543723 Add bash completion for docker plugin ls --filter
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f26c735282
Component: cli
2017-06-02 00:10:53 +00:00
Nathan LeClaire
fd7bb178af Remove --init-path mention
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
Upstream-commit: b380c2eb63
Component: cli
2017-06-02 00:10:53 +00:00
Nathan LeClaire
5a52b7e76e Document --init flag for docker run
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
Upstream-commit: f571b363e6
Component: cli
2017-06-02 00:10:53 +00:00
Vincent Demeester
b40caaa6d6 Update docker stack experimental notes
Update command usage and help.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 705f7ad7d2
Component: cli
2017-06-02 00:10:53 +00:00
Christopher Jones
8d23e38798 added ppc64le and s390x fixes for manpages
Fixes manpages for p and z by downloading a specific version
of go instead of relying on the distro version.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
Upstream-commit: d39215cbaa
Component: cli
2017-06-02 00:10:53 +00:00
Aaron Lehmann
5842bb356f Fix grammatical error in swarm_leave.md
Correct this sentence so it reads correctly. "to on a manager" should be
"on a manager".

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: e6889bf41b
Component: cli
2017-06-02 00:10:53 +00:00
Andrew Hsu
7fdb8e3901 remove musl-dev in man/Dockerfile.armhf
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Upstream-commit: ff9b736d52
Component: cli
2017-06-02 00:10:53 +00:00
Andrew Hsu
ed74cb5919 use precompiled go from google, needs debian to work
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Upstream-commit: a39f753e56
Component: cli
2017-06-02 00:10:52 +00:00
Andrew Hsu
ed59737443 from golang:1.7.5-alpine for docker-manpage-dev
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Upstream-commit: 6d4b51d1a9
Component: cli
2017-06-02 00:10:52 +00:00
Harald Albers
35aa1f008a Add bash completion for {stack services,service ls} --format
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f7e0aa39fa
Component: cli
2017-06-02 00:10:52 +00:00
Lewis Daly
a754ae967d Updated dockerd docs with note about user namespaces
Signed-off-by: Lewis Daly <lewisdaly@me.com>

Updated uid/gid reference to be more canonical - and signed commit

Signed-off-by: Lewis Daly <lewisdaly@me.com>

Editorial suggestion

I tried my hand at rewriting this a bit for readability. Can you please verify that the facts are correct, especially about the permission changes? You can feel free to squash my commit with yours so that it's signed. You'll need to pull the change from your fork to work on it locally.

Editorial suggestion

I tried my hand at rewriting this a bit for readability. Can you please verify that the facts are correct, especially about the permission changes? You can feel free to squash my commit with yours so that it's signed. You'll need to pull the change from your fork to work on it locally.
Upstream-commit: 50d1d4ecba
Component: cli
2017-06-02 00:10:52 +00:00
Brian Goff
6a8ef9223f Make propagated mount persist outside rootfs
This persists the "propagated mount" for plugins outside the main
rootfs. This enables `docker plugin upgrade` to not remove potentially
important data during upgrade rather than forcing plugin authors to hard
code a host path to persist data to.

Also migrates old plugins that have a propagated mount which is in the
rootfs on daemon startup.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: df4e570ff4
Component: cli
2017-06-02 00:10:52 +00:00
Brian Goff
c2e799fae6 Add docker plugin upgrade
This allows a plugin to be upgraded without requiring to
uninstall/reinstall a plugin.
Since plugin resources (e.g. volumes) are tied to a plugin ID, this is
important to ensure resources aren't lost.

The plugin must be disabled while upgrading (errors out if enabled).
This does not add any convenience flags for automatically
disabling/re-enabling the plugin during before/after upgrade.

Since an upgrade may change requested permissions, the user is required
to accept permissions just like `docker plugin install`.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: 02677bc06e
Component: cli
2017-06-02 00:10:52 +00:00