Lei
2d2192c579
Add ulimit to docker build.
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: f793c1b50c
Component: cli
2017-06-02 00:07:02 +00:00
Harald Albers
738ed44f7d
Second level completions for --log-opt
...
Advanced completion for some log driver options:
gelf-address, syslog-address, syslog-facility.
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: ad1ca76a0b
Component: cli
2017-06-02 00:07:02 +00:00
Harald Albers
622fdc9393
Completion: Add support for '=' in arguments to __docker_pos_first_nonflag
...
This solves several problems that arise from the special treatment of
"=" in Bash.
The fix was required as some log drivers have options in a key=value
form. It also addresses the --option=value and the negated boolean syntax
(--boolean=false).
Note that this is not a general fix for these problems, it is limited to
the __docker_pos_first_nonflag function.
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: f7eb7787da
Component: cli
2017-06-02 00:07:02 +00:00
Harald Albers
d423291b54
Driver-specific completions for --log-opt
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: d3098f54ab
Component: cli
2017-06-02 00:07:02 +00:00
Harald Albers
31610116ef
Add missing log drivers to bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: e00293bec8
Component: cli
2017-06-02 00:07:02 +00:00
Vincent Bernat
ef4e017a4c
zsh: update zsh completion for docker command
...
zsh completion is updated with the content of
felixr/docker-zsh-completion.
- felixr/docker-zsh-completion@a93e1cb7bd Fix completion of repositories with tags
- felixr/docker-zsh-completion@590ea70596 Respect provided `--host` flag when invoking docker
- felixr/docker-zsh-completion@6c557babaa Several cosmetic improvements
- felixr/docker-zsh-completion@5b63cc591a Update completion for `inspect`
- felixr/docker-zsh-completion@b7d8f2f7cc Order completions alphabetically
- felixr/docker-zsh-completion@63f6a06224 Factor completion for `build`, `create` and `run`
- felixr/docker-zsh-completion@ade49ee47f Enforce positional arguments being last
- felixr/docker-zsh-completion@850b6b6d95 Update completion for build/commit/export/exec/history/import
- felixr/docker-zsh-completion@01bfd8c075 Remove completion for `insert` and duplicate of `import`
- felixr/docker-zsh-completion@c64a1d730a Update completion for `stats` to add `--no-stream` flag
- felixr/docker-zsh-completion@5e81d78b52 Update completion for `log` to add `--since` flag
- felixr/docker-zsh-completion@b3c146a1a2 Update completion for `run` to add `--group-add` flag
- felixr/docker-zsh-completion@8d4f196ad8 Don't trigger expensive completion function for flags
- felixr/docker-zsh-completion@bd5aaa124d Add completion for `--help` everywhere
- felixr/docker-zsh-completion@3a67a0e8c4 Return appropriate status code on completion
- felixr/docker-zsh-completion@4dfcb450ea Add Steve as a regular contributor.
- felixr/docker-zsh-completion@996a1c6def Add completion for top-level flags
- felixr/docker-zsh-completion@b6df75905f Ensure short/long option are not allowed twice
- felixr/docker-zsh-completion@75b6a500a0 Complete repositories with tags only on repository match
- felixr/docker-zsh-completion@5e6292135f Factorize completion of images/repositories/tags
- felixr/docker-zsh-completion@1c504eb677 Handle repositories with ":"
- felixr/docker-zsh-completion@0a05bf818b Update completion for `pause' and `unpause'
- felixr/docker-zsh-completion@b3a63253e2 Containers name can include Swarm host
In summary:
- Swarm support
- Handling repositories with ":"
- Rework how completion of images/repositories/tags work:
- felixr/docker-zsh-completion@5e6292135f
- felixr/docker-zsh-completion@75b6a500a0
- felixr/docker-zsh-completion@a93e1cb7bd
The remaining changes are here to sync changes done in Docker repository
(mostly from PR #14074 and #14555 , by @sdurrheimer). With some minor changes:
- boolean flags don't complete their arguments (true/false)
- reuse of `--host` argument is done with `$opt_arg` to avoid parsing
error
- build/create/run common options are factorized out
- `--help` flag is handled differently
- `pause` and `unpause` accepts several containers as far as I know, so
the change is reverted
- some more, but difficult to notice (more completion for some flags I think)
Some labels are reverted, mostly because I did the merge by copy/pasting
new options instead of modifying existing options.
This commit is partial. The way the `--help` option is handled triggered
a major change due to the way things are quoted. Those changes were
partially and programmaticaly reverted in this commit only to minimize
the changes to review. The next commit will restore the full changes.
Signed-off-by: Vincent Bernat <vincent@bernat.im >
Upstream-commit: c15fdb2435
Component: cli
2017-06-02 00:07:02 +00:00
Steve Durrheimer
2eca0b71ce
Several cosmetic improvements in zsh completion
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com >
Upstream-commit: 66c1b06bc4
Component: cli
2017-06-02 00:07:01 +00:00
Steve Durrheimer
e5d2433008
Zsh completion update for the following commits:
...
- Add fluentd logging driver to zsh completion #12876
- Add inspect --type flag to zsh completion #13187
- Respect -H option in zsh completion #13195
- Fix number of argument limit for pause and unpause in zsh completion
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com >
Upstream-commit: 31c530fd42
Component: cli
2017-06-02 00:07:01 +00:00
Vincent Bernat
7d2ef56baf
zsh: remove Vincent Bernat from reviewers for ZSH completion
...
Signed-off-by: Vincent Bernat <vincent@bernat.im >
Upstream-commit: 3a6ca4b1d8
Component: cli
2017-06-02 00:07:01 +00:00
Mrunal Patel
b93f7135a0
Adds documentation for additional groups.
...
Signed-off-by: Mrunal Patel <mrunalp@gmail.com >
Upstream-commit: 7301088482
Component: cli
2017-06-02 00:07:01 +00:00
Harald Albers
6553295dca
Add some missing events to bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 23256b7438
Component: cli
2017-06-02 00:07:01 +00:00
Shishir Mahajan
4aa2c173ed
Flag Addition: --type flag added for docker inspect command
...
Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com >
Upstream-commit: 24e7d40f42
Component: cli
2017-06-02 00:06:59 +00:00
Steve Durrheimer
f7d91b77b4
Update the zsh completion
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com >
Upstream-commit: becaec720e
Component: cli
2017-06-02 00:06:58 +00:00
Harald Albers
b291440ff0
Update bash completion for 1.7.0
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 342d0cd04c
Component: cli
2017-06-02 00:06:56 +00:00
Jessica Frazelle
6b897604a6
Revert "Add docker exec run a command in privileged mode"
...
This reverts commit 72a500e9e5929b038816d8bd18d462a19e571c99.
Signed-off-by: Jessica Frazelle <princess@docker.com >
Conflicts:
daemon/execdriver/native/exec.go
integration-cli/docker_cli_exec_test.go
runconfig/exec.go
Upstream-commit: 05c0da3b96
Component: cli
2017-06-02 00:06:56 +00:00
Harald Albers
ea16c04a2a
respect -H in bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 9c413dcfc4
Component: cli
2017-06-02 00:06:56 +00:00
Shishir Mahajan
4ae6d04e85
root dir for execdriver (/var/run/docker) should be configurable
...
Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com >
Upstream-commit: 7defdb0868
Component: cli
2017-06-02 00:06:56 +00:00
Ahmet Alp Balkan
62f1457cde
Add --since argument to docker logs cmd
...
Added --since argument to `docker logs` command. Accept unix
timestamps and shows logs only created after the specified date.
Default value is 0 and passing default value or not specifying
the value in the request causes parameter to be ignored (behavior
prior to this change).
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com >
Upstream-commit: a92995bc14
Component: cli
2017-06-02 00:06:56 +00:00
Ma Shimiao
37cbf376eb
add cpu.cfs_period_us support
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com >
Upstream-commit: edbbcc6dae
Component: cli
2017-06-02 00:06:55 +00:00
Brian Goff
d3cd09fb11
Allow pulling stats once and disconnecting.
...
Adds a `stream` query param to the stats API which allows API users to
only collect one stats entry and disconnect instead of keeping the
connection alive to stream more stats.
Also adds a `--no-stream` flag to `docker stats` which does the same
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
Upstream-commit: 485c6d868b
Component: cli
2017-06-02 00:06:55 +00:00
Tianon Gravi
94a4f91981
Only complete repos with "docker pull -a"
...
With this, `docker pull deb<tab>` will show all `debian:*` tags, as before, but `docker pull -a deb<tab>` will complete directly to just `debian`. 👍
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com >
Upstream-commit: 14411fae61
Component: cli
2017-06-02 00:06:55 +00:00
Jessica Frazelle
9956e4d35a
Add docs for --exec-opt and setting native.cgroupdriver.
...
update man pages.
update bash completion.
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com > (github: jfrazelle)
Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <jess@docker.com > (github: jfrazelle)
Upstream-commit: 734430c44c
Component: cli
2017-06-02 00:06:55 +00:00
Lei Jitang
23a611d95b
Add cpu cfs quota to build
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: 433f49684e
Component: cli
2017-06-02 00:06:55 +00:00
Lei Jitang
e28ed017e0
Add support cpu cfs quota
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: 6c60a3415c
Component: cli
2017-06-02 00:06:54 +00:00
Lei Jitang
38c9ef629e
Add docker exec run a command in privileged mode
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: cae7221b8d
Component: cli
2017-06-02 00:06:54 +00:00
Lei Jitang
ab684537e4
Add -u|--user flag to docker exec for running command as a different user
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: 3ca275df6d
Component: cli
2017-06-02 00:06:54 +00:00
Lei Jitang
f7e21a2b4b
Add some missing option to bash completion
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: 26c3652d5e
Component: cli
2017-06-02 00:06:53 +00:00
Harald Albers
e326deef86
Add missing filters to bash completion for docker images and docker ps
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: d0fefccd8d
Component: cli
2017-06-02 00:06:52 +00:00
Harald Albers
8a9d154752
Do not complete --cgroup-parent as _filedir
...
This is a follow-up on PR 11708, as suggested by tianon.
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 4d5758b252
Component: cli
2017-06-02 00:06:52 +00:00
Lei Jitang
71f6d6f041
Add some run option to bash completion
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: 984a0d8dee
Component: cli
2017-06-02 00:06:52 +00:00
Vincent Batts
728ca1f0bb
.: remove trailing white spaces
...
blame tibor this one ;-)
```
find . -type f -not -name '*.png' -not -name '*.go' -not -name '*.md'
-not -name '*.tar' -not -name '*.pem' -not -path './vendor/*' -not -path
'./.git/*' -not -path '*/testdata/*' -not -path './docs/*images*' -not
-path '*/testfiles/*' -not -path './bundles/*' -not -path
'./docs/*static*/*' -not -path './docs/*article-img/*' -exec grep -HnEl
'[[:space:]]$' {} \; | xargs sed -iE 's/[[:space:]]*$//'
```
Signed-off-by: Vincent Batts <vbatts@redhat.com >
Upstream-commit: 1bca003519
Component: cli
2017-06-02 00:06:51 +00:00
Tibor Vass
dba480a36b
Revert "Dealing with trailing whitespaces"
...
The validation script from #10681 is too pedantic, and does not handle
well situations like:
```
cat <<EOF # or <<-EOF
Whether the leading whitespace is stripped out or not by bash
it should still be considered as valid.
EOF
```
This reverts commit 4e65c1c319afffc325853b88c9aef0c42ec83482.
Signed-off-by: Tibor Vass <tibor@docker.com >
Upstream-commit: 3574eda4c1
Component: cli
2017-06-02 00:06:51 +00:00
André Martins
05cd256c83
Dealing with trailing whitespaces
...
Created a validation that detects all trailing whitespaces from every
text file that isn't *.go, *.md, vendor/*,
docs/theme/mkdocs/tipuesearch*
Removed trailing whitespaces from every text file except from vendor/*
builder/parser/testfiles*, docs/theme/mkdocs/tipuesearch* and *.md
Signed-off-by: André Martins <martins@noironetworks.com >
Upstream-commit: 1f934f1094
Component: cli
2017-06-02 00:06:51 +00:00
Harald Albers
75d1a0ff30
restrict bash completion for hostdir arg to directories
...
The previous state assumed that the HOSTPATH argument referred to a
file. As clarified by moxiegirl in PR #11305 , it is a directory.
Adjusted completion to reflect this.
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: fc2a7eea91
Component: cli
2017-06-02 00:06:51 +00:00
Ma Shimiao
0f6be90129
fix wrong tab completion
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com >
Upstream-commit: f86dcef486
Component: cli
2017-06-02 00:06:51 +00:00
Harald Albers
edbfd74dae
Updates to bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: e2b5fc47e3
Component: cli
2017-06-02 00:06:50 +00:00
Mabin
eaf96905f1
docs: api-enable-cors is deprecated,updated docs description
...
Signed-off-by: Mabin <bin.ma@huawei.com >
Upstream-commit: 0be893a352
Component: cli
2017-06-02 00:06:49 +00:00
Dan Walsh
dede462a29
Need to support new linux capability AUDIT_READ
...
Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com > (github: rhatdan)
Upstream-commit: e75c4494ed
Component: cli
2017-06-02 00:06:49 +00:00
Lei Jitang
5b40eb5af0
Add --ulimit and --default-ulimit to bash completion
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: d8c4619844
Component: cli
2017-06-02 00:06:49 +00:00
Harald Albers
d62485cc11
Add bash completion for docker events --filter and --until.
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 9690067dee
Component: cli
2017-06-02 00:06:49 +00:00
Arnaud Porterie
d8f9782fd3
Remove subdirectories MAINTAINERS files
...
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com >
Upstream-commit: 80728bcd7b
Component: cli
2017-06-02 00:06:48 +00:00
Lei Jitang
348a220c93
Fix docker build and docker run bash completion
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
Upstream-commit: 5bc113a640
Component: cli
2017-06-02 00:06:48 +00:00
Vincent Bernat
6e5bdec15f
zsh: update zsh completion for docker command
...
zsh completion is updated with the content of
felixr/docker-zsh-completion.
ef4a3fce0437 Update completion for `wait' as per 1.5.0
ace5aa9c1282 Add completion for `stats'
91f112834865 Update completion for `search' as per 1.5.0
a5e4febe4bf6 Update completion for `save' as per 1.5.0
1cdbdb18a384 Add completion for `rename'
2f004bb724b9 Update completion for `pull' as per 1.5.0
773b88e0885b Update completion for `logs' as per 1.5.0
c57e5d5c4551 Update completion for `load' to favor archive files
9af7d12b487e Update completion for `images` as per 1.5.0
0d59e66aff30 update completion for `exec' to complete on commands
46b6c66760d7 Update completion for `events' as per 1.5.0
307e0bdc4c34 Update completion for `commit' as per 1.5.0
c4b331f38cc4 Update completion for `build' as per 1.5.0
Also added myself in the `MAINTAINERS` file.
Signed-off-by: Vincent Bernat <vincent@bernat.im >
Upstream-commit: e49fa872b4
Component: cli
2017-06-02 00:06:47 +00:00
Ahmet Alp Balkan
7719cf0e1f
Shorten help messages for docker cmd flags
...
In order to fit printed messages to fit 80 chars,
rewording messages for `-H` and `--tls` flags.
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com >
Upstream-commit: ee1b138b2b
Component: cli
2017-06-02 00:06:47 +00:00
Mike Dillon
7ee27fd32c
Add bash completion for docker rename
...
Signed-off-by: Mike Dillon <mike@embody.org >
Upstream-commit: ceee2175bd
Component: cli
2017-06-02 00:06:47 +00:00
Harald Albers
fd50a93b59
Fix bash completion for docker run -d
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 3bb3eae782
Component: cli
2017-06-02 00:06:47 +00:00
Coenraad Loubser
8ec6a20c55
Update docker.fish
...
Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <jess@docker.com > (github: jfrazelle)
Signed-off-by: Coenraad Loubser <coenraad@wish.org.za >
Upstream-commit: 01187a4030
Component: cli
2017-06-02 00:06:46 +00:00
Harald Albers
6d25d34bba
Bash completion for docker kill
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 063a4f574a
Component: cli
2017-06-02 00:06:46 +00:00
Arnaud Porterie
875d536e72
Update fish completion for 1.5.0
...
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com >
Upstream-commit: dc7a9b9c0e
Component: cli
2017-06-02 00:06:46 +00:00
Jessica Frazelle
b52831aaaf
Add completion for stats.
...
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com > (github: jfrazelle)
Upstream-commit: e6158378b5
Component: cli
2017-06-02 00:06:46 +00:00