Ben Thorner
a6b602d086
Support attaching to dependencies on up
...
When using the 'up' command, only services listed as arguments are
attached to, which can be very different to the 'no argument' case
if a service has many and deep dependencies:
- It's not clear when dependencies have failed to start. Have to run
'compose ps' separately to find out.
- It's not clear when dependencies are erroring. Have to run 'compose
logs' separately to find out.
With a simple setup, it's possible to work around theses issue by
using the 'up' command without arguments. But when there are lots of
'top-level' services, with common dependencies, in a single config,
using 'up' without arguments isn't practical due to resource limits
and the sheer volume of output from other services.
This introduces a new '--attach-dependencies' flag to optionally attach
dependent containers as part of the 'up' command. This makes their logs
visible in the output, alongside the listed services. It also means we
benefit from the '--abort-on-container-exit' behaviour when dependencies
fail to start, giving more visibility of the failure.
Signed-off-by: Ben Thorner <ben.thorner@digital.cabinet-office.gov.uk>
2020-01-16 13:41:54 +00:00
Sebastiaan van Stijn
33eeef41ab
Remove "bundle" subcommand and support for DAB files
...
Deploying stacks using the "Docker Application Bundle" (`.dab`) file
format was introduced as an experimental feature in Docker 1.13 /
17.03, but superseded by support for Docker Compose files in the CLI.
With no development being done on this feature, and no active use of the file
format, support for the DAB file format and the top-level `docker deploy` command
(hidden by default in 19.03), will be removed from the CLI, in favour of
`docker stack deploy` using compose files.
This patch removes the `docker-compose bundle` subcommand from Docker Compose,
which was used to convert compose files into DAB files (and given the above,
will no longer be needed).
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-01-08 16:42:49 +01:00
Klaas Hoekema
413e5db7b3
Add shell completions for --env-file option
...
Adds completions for the --env-file toplevel option to the bash, fish,
and zsh completions files.
Signed-off-by: Klaas Hoekema <khoekema@azavea.com>
2019-07-24 09:25:10 -04:00
Harald Albers
d68113f5c0
Add bash completion for `config --no-interpolate`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2019-05-24 21:59:14 +02:00
Inconnu08
99e67d0c06
fix warning method is deprecated with tests
...
Signed-off-by: Taufiq Rahman <taufiqrx8@gmail.com>
2019-05-15 23:46:12 +06:00
Akshit Grover
1f97a572fe
Add --quiet build flag
...
Signed-off-by: Akshit Grover <akshit.grover2016@gmail.com>
2019-03-02 13:07:23 +05:30
Ulysses Souza
a35aef4953
Add --no-rm to command build
...
- When present, build does not remove
intermediate containers after a successful build.
Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
2019-02-20 18:09:09 +01:00
Harald Albers
436a343a18
Fix bash completion for `build --memory`
...
- the option requires an argument
- adds missing short form `-m`
Signed-off-by: Harald Albers <github@albersweb.de>
2019-02-11 13:50:41 +01:00
Ulysses Souza
698ea33b15
Add `--parallel` to `docker build`'s options in `bash` and `zsh` completion
...
Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
2019-01-21 19:13:45 +01:00
Chris Crone
8f5f7e72be
Merge pull request #6466 from rumpl/credential-spec
...
Support for credential_spec
2019-01-21 11:03:34 +01:00
Djordje Lukic
ae0f3c74a0
Support for credential_spec
...
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2019-01-17 16:00:22 +01:00
Harald Albers
14a1a0c020
Add bash completion for `ps --all|-a`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2019-01-15 09:01:49 +01:00
Alex Puschinsky
5b02922455
Fix ZSH autocomplete for multiple -f flags
...
Signed-off-by: Alex Puschinsky <alexpoo@gmail.com>
2018-11-03 18:37:34 +02:00
Harald Albers
b29ffb49e9
Fix bash completion for `config --hash`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2018-09-27 09:20:44 +02:00
Joffrey F
265d9dae4b
Update zsh completion with new options, and ensure service names are properly retrieved
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-09-12 16:17:30 -07:00
Fender William
541fb65259
Add --hash opt for config command
...
Signed-off-by: Fender William <fender.william@gmail.com>
2018-08-07 16:51:01 -07:00
Harald Albers
7846f6e2a0
Fix bash completion for running services
...
Signed-off-by: Harald Albers <github@albersweb.de>
2018-05-17 15:57:07 +02:00
Joffrey F
12b68572ef
Merge pull request #5868 from albers/completion-for-1.21.0
...
Add support for features added in 1.21.0 to bash completion
2018-04-12 11:47:00 -07:00
Harald Albers
ca396bac6d
Add support for features added in 1.21.0 to bash completion
...
- add support for `docker-compose exec --workdir|-w`
- add support for `docker-compose build --compress`
- add support for `docker-compose pull --no-parallel`, drop deprecated
option `--parallel`
Signed-off-by: Harald Albers <github@albersweb.de>
2018-04-12 08:52:20 +02:00
Harald Albers
20a9ae50b0
Refactor bash completion for services
...
Signed-off-by: Harald Albers <github@albersweb.de>
2018-04-11 12:47:10 +02:00
Joffrey F
1c314a8757
Merge pull request #5792 from dakotahawkins/dakotahawkins-5790_update-docker-compose.ps1
...
Add update-docker-compose.ps1 to contrib/update/
2018-03-19 05:25:11 -07:00
Dakota Hawkins
5184f4f78d
Add update-docker-compose.ps1 to contrib/update/
...
Updates Windows' installed version of docker-compose to the latest
release.
Fixes #5790
Signed-off-by: Dakota Hawkins <dakotahawkins@gmail.com>
2018-03-15 19:21:34 -04:00
Wes Higbee
e7f0ab04a1
Fix docker-compose zsh running service name completion
...
This applies to commands that operate on running services. For example: top, stop, restart, etc.
Configuring a custom psFormat in ~/.docker/config.json can break zsh
running service name completion that depends upon default `docker ps`
output. This breaks when you don't include the output needed by
completion.
The fix specifies the explicit format needed for completion and is based
on a previous fix in the docker CLI completion: 8b38343e46
Signed-off-by: Wes Higbee <wes.mcclure@gmail.com>
2018-03-14 22:34:11 -04:00
Harald Albers
7049bea1bb
Add support for options added in 1.20.0 to bash completion
...
New options:
- `docker-compose --log-level`
- `docker-compose pull --include-deps`
- `docker-compose run --use-aliases`
Signed-off-by: Harald Albers <github@albersweb.de>
2018-03-01 16:04:13 +01:00
Joffrey F
c16820eca0
Update bash completion
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-21 17:00:42 -08:00
Brian de Alwis
bb8c2e1f45
Fix bash completion on systems where extglob is not set
...
Signed-off-by: Brian de Alwis <bsd@mt.ca>
2018-02-09 11:25:58 -05:00
Harald Albers
6cfbb7ed8a
Add missing `-q|--quiet` options to increase consistency
...
Signed-off-by: Harald Albers <github@albersweb.de>
2018-01-30 01:28:15 +01:00
Harald Albers
b27c245395
Add bash completion for `up {--always-recreate-deps,--renew-anon-volumes}`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2018-01-24 23:08:25 +01:00
Harald Albers
6f48f5db4c
Add bash completion for `ps --services --filter`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2018-01-16 14:31:28 +01:00
Joffrey F
c4fda0834d
Merge pull request #5384 from ilinum/1498-docker-compose-services
...
Implement --filter flag for docker-compose config --services and use it in bash completion
2018-01-09 17:02:04 -08:00
Svyatoslav Ilinskiy
a1f0c3ed7c
Rename `ps --filter` option from `key` to `source`.
...
Signed-off-by: Svyatoslav Ilinskiy <ilinskiy.sv@gmail.com>
2018-01-09 10:57:06 -06:00
Harald Albers
bb42537bcf
Add bash completion for `down --timeout`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2017-12-07 17:49:39 +01:00
Joffrey F
9098a67394
Merge pull request #5410 from sethktaylor11/5374-build-memory
...
Adds support for a memory build-arg in docker-compose build.
2017-12-04 14:00:09 -08:00
Samantha Miller
a6cdd62726
Adds support for a memory flag to docker-compose build.
...
Signed-off-by: Samantha Miller <samantha.a.miller123@gmail.com>
2017-12-03 13:59:32 -06:00
Svyatoslav Ilinskiy
be0b902631
Add ability to list and filter services in `ps`
...
Also, rename --filter "option=..." to --filter "key=..."
Signed-off-by: Svyatoslav Ilinskiy <ilinskiy.sv@gmail.com>
2017-12-02 18:37:21 -06:00
Samantha Miller
c36a2fb1ad
Added a label option to 'docker-compose run' and test.
...
Signed-off-by: Samantha Miller <samantha.a.miller123@gmail.com>
2017-11-28 18:43:00 -06:00
Svyatoslav Ilinskiy
1414c1f1fa
Use docker-compose config --services in bash completion
...
Signed-off-by: Svyatoslav Ilinskiy <ilinskiy.sv@gmail.com>
2017-11-18 17:27:42 -06:00
Harald Albers
9b06bdc34a
Add bash completion for `up --no-start`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2017-10-19 14:27:25 -07:00
Harald Albers
ff05f1ed15
Add bash completion for `create --build`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2017-08-25 15:46:57 -07:00
Harald Albers
28e1c85c3b
Add bash completion for `--no-ansi`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2017-08-25 15:46:34 -07:00
Harald Albers
b8719c4b11
Add bash completion for `pull --quiet`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2017-07-20 17:07:45 -07:00
Harald Albers
16bbe5d99c
Add docker-compose exec -u to docs and completion
...
Signed-off-by: Harald Albers <github@albersweb.de>
2017-05-11 18:19:01 +02:00
Harald Albers
0dc25f1cdf
Add bash completion for `docker-compose up --scale`
...
Signed-off-by: Harald Albers <github@albersweb.de>
2017-04-25 13:19:22 +02:00
Joffrey F
8f08f57cb7
Merge pull request #4683 from sdurrheimer/zsh-completion-run-volume
...
Add zsh completion for 'docker-compose run -v --volume'
2017-03-31 12:22:28 -07:00
Joffrey F
9069ae78f7
Merge pull request #4685 from sdurrheimer/zsh-completion-config
...
Add zsh completion for 'docker-compose config --resolve-image-digests --volumes'
2017-03-30 13:46:05 -07:00
Joffrey F
5230396543
Merge pull request #4684 from sdurrheimer/zsh-completion-build-build-arg
...
Add zsh completion for 'docker-compose build --build-arg'
2017-03-30 13:45:08 -07:00
Steve Durrheimer
be8fd5810e
Add zsh completion for 'docker-compose config --resolve-image-digests --volumes'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2017-03-30 22:10:20 +02:00
Steve Durrheimer
29d23c2793
Add zsh completion for 'docker-compose build --build-arg'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2017-03-30 22:05:36 +02:00
Steve Durrheimer
9fc3cc9c3c
Add zsh completion for 'docker-compose run -v --volume'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2017-03-30 22:01:00 +02:00
Steve Durrheimer
f6fc8b5822
Add zsh completion for 'docker-compose images'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2017-03-30 21:32:33 +02:00