f65987b601
Fix bash completion for docker exec --env
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 41262297416dcb007224d7d3e7e4aae19d3e9e7b
Component: engine
2016-10-22 08:14:59 -07:00
39b84d5fbe
Add force option to service update
...
Currently, there's no way to restart the tasks of a service without
making an actual change to the service. This leads to us giving awkward
workarounds as in
https://github.com/docker/docker.github.io/pull/178/files , where we tell
people to scale a service up and down to restore balance, or make
unnecessary changes to trigger a restart.
This change adds a --force option to "docker service update", which
forces the service to be updated even if no changes require that.
Since rolling update parameters are respected, the user can use
"docker service --force" to do a rolling restart. For example, the
following is supported:
docker service update --force --update-parallelism 2 \
--update-delay 5s myservice
Since the default value of --update-parallelism is 1, the default
behavior is to restart the service one task at a time.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
Upstream-commit: c9fdf9abf8d6443598808809b900d96e04adfcb1
Component: engine
2016-10-21 17:43:27 -07:00
6c03315e4f
Move bash completion logic to new subcommand: wait
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 93ccf95db1719df8127be9942db296308c33daad
Component: engine
2016-10-21 12:39:32 +02:00
b5205feca1
Move bash completion logic to new subcommand: update
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: f9a24c72bac315a03c41ad48e8073c164721e58c
Component: engine
2016-10-21 12:39:32 +02:00
cc509b2720
Move bash completion logic to new subcommand: unpause
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 6ac201721ff21425e6a6220fd166c68e34715f10
Component: engine
2016-10-21 12:39:32 +02:00
f55bd670a7
Move bash completion logic to new subcommand: top
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 4bab104761c1af134e8f098d7f2d0072bb7c64c7
Component: engine
2016-10-21 12:39:32 +02:00
a016d56d65
Move bash completion logic to new subcommand: stop
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 150dcabc0f8b4c238b4e98c015fc7373b2d293b8
Component: engine
2016-10-21 12:39:32 +02:00
a0d87aba08
Move bash completion logic to new subcommand: stats
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 19f31f8e481e00fe2f19e5341696e7f810d2bbb2
Component: engine
2016-10-21 12:39:32 +02:00
0eda6f996b
Move bash completion logic to new subcommand: start
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 2bbfd01e7a0e70fcbfdc756c393a8d8aef217d76
Component: engine
2016-10-21 12:39:32 +02:00
e43240c557
Move bash completion logic to new subcommand: run
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 5200d18dbf8abf9171818db735a23f87978008bc
Component: engine
2016-10-21 12:39:32 +02:00
15649f5936
Move bash completion logic to new subcommand: rm
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 9fc4670b3b1f83adc04230619c9181b7d6b4ccce
Component: engine
2016-10-21 12:39:32 +02:00
fa16e189ad
Move bash completion logic to new subcommand: restart
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 58027826d4fb1b87a59b8f1a6e2b23780f389619
Component: engine
2016-10-21 12:39:32 +02:00
0629b87f8c
Move bash completion logic to new subcommand: port
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 96547d0e88250ac009d1c73cc9b61ae88452ae27
Component: engine
2016-10-21 12:39:32 +02:00
5b1ad7b5a9
Move bash completion logic to new subcommand: port
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 48e75d4bc2cbe2bf3414613262eab0b5dc585555
Component: engine
2016-10-21 12:39:32 +02:00
507fa2bf07
Move bash completion logic to new subcommand: pause
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 27abd030591d7b5e3b9718c967ab283def411d1e
Component: engine
2016-10-21 12:39:32 +02:00
35fce53c94
Move bash completion logic to new subcommand: ps
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: a91fb558d2c7e7958baad19db0950fa6312ae47d
Component: engine
2016-10-21 12:39:32 +02:00
b52b64a1cb
Move bash completion logic to new subcommand: logs
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 4dedad31182bacde2074578e6e5520d8fb7619bb
Component: engine
2016-10-21 12:39:32 +02:00
75140aa68c
Move bash completion logic to new subcommand: kill
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: f1e12a495148852da2cc1d96b750ee496d3a2d0b
Component: engine
2016-10-21 12:39:32 +02:00
98b9915bd0
Move bash completion logic to new subcommand: inspect
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 3cd9f226649c527fcc1a8bdffdeb7005b7084077
Component: engine
2016-10-21 12:39:32 +02:00
02c1a5c4e0
Move bash completion logic to new subcommand: diff
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 3b6f6611b04eee06c77d578ba9d8ea6346eadb8c
Component: engine
2016-10-21 12:39:32 +02:00
afd1a1c262
Move bash completion logic to new subcommand: exec
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 8fde0d7f2b6822e82220a37a055f3f772036bf8b
Component: engine
2016-10-21 12:39:32 +02:00
f441b12ee3
Move bash completion logic to new subcommand: diff
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: f15debe56c918f74a23c230e6346635fe90bd553
Component: engine
2016-10-21 12:32:08 +02:00
c47611895a
Move bash completion logic to new subcommand: create
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: cd4a490b3f7a53a89d538e1f0eb92eda75af0519
Component: engine
2016-10-21 12:32:08 +02:00
103a2934c7
Move bash completion logic to new subcommand: cp
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 939a97f7acc14b9104159d7d2e8489c517774fdb
Component: engine
2016-10-21 12:32:08 +02:00
abbc542480
Move bash completion logic to new subcommand: commit
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 6a0dff0a9a17aeeabb84aedd2c37008ca93f4a82
Component: engine
2016-10-21 12:32:08 +02:00
da37072dda
Move bash completion logic to new subcommand: attach
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: dc5794b3060f51470998b11bb5b34d9efbe97dc3
Component: engine
2016-10-21 12:32:08 +02:00
91e3d19aab
Add bash completion for docker container
...
At this point, we just delegate to the existing completions.
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: a77bc8bbcf8acc40f26bd858e937a7154977943c
Component: engine
2016-10-21 12:32:08 +02:00
7fbcf96052
Merge pull request #24594 from jwendell/24355
...
Exec: Add ability to set environment variables
Upstream-commit: 1b677816f50d09650044a7dbda3807bddffdad8d
Component: engine
2016-10-20 13:26:48 +02:00
686178dec7
Merge pull request #27542 from albers/completion-comments
...
Improve comments in bash completion
Upstream-commit: 5023d3aa7ae3fa76ee0679f5633a57259beb3b47
Component: engine
2016-10-19 20:36:40 -07:00
f4d76afea5
Add bash completion for dockerd --shutdown-timeout
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: c24c1bd87f7e188012705b4d95c1f66ace59f44d
Component: engine
2016-10-19 18:59:01 +02:00
bf1e1cd730
Exec: Add ability to set environment variables
...
Keeping the current behavior for exec, i.e., inheriting
variables from main process. New variables will be added
to current ones. If there's already a variable with that
name it will be overwritten.
Example of usage: docker exec -it -e TERM=vt100 <container> top
Closes #24355 .
Signed-off-by: Jonh Wendell <jonh.wendell@redhat.com >
Upstream-commit: e03bf1221ee2c863f25a57af4d415e2d8ff4f26c
Component: engine
2016-10-19 12:39:25 -02:00
d54e2cee24
Improve comments in bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: b0987b799ea6da792a10f8a6b065b3d7a92b0cb7
Component: engine
2016-10-19 15:35:56 +02:00
28791e5b60
Merge pull request #27316 from albers/completion-plugins
...
Align bash completion of plugins to completion of nodes and services
Upstream-commit: ff43982fbbbca71bcd9625ccc50fa8d5fb547228
Component: engine
2016-10-19 12:17:12 +02:00
b2f5d14643
Merge pull request #26421 from aaronlehmann/update-thresholds-rollbacks
...
Service update failure thresholds and rollback
Upstream-commit: 3b0660da30a23b86a2f29f1ecf3ded52ab7fe577
Component: engine
2016-10-18 15:26:24 -07:00
196b5a3aee
Merge pull request #27492 from albers/completion-run--stop-timeout
...
Add bash completion for `docker {run,create} --stop-timeout`
Upstream-commit: 701cd7996f18914176e44c90032488dd5e42f136
Component: engine
2016-10-18 17:22:47 -04:00
b2afb8eb0f
Merge pull request #27348 from albers/completion-containers
...
Improve bash completion of containers
Upstream-commit: f8031148337362ef4946f174695eb1077b4e3b72
Component: engine
2016-10-18 13:31:47 -07:00
f2f2348179
Merge pull request #27235 from albers/completion-networks
...
Align bash completion of networks to completion of nodes and services
Upstream-commit: b17107a84a8fb13ece3a87c9abe08d278c8e653a
Component: engine
2016-10-18 13:30:01 -07:00
d684678466
Merge pull request #27239 from albers/completion-volumes
...
Align bash completion of volumes to completion of nodes and services
Upstream-commit: 29cc38da53df8f4fea0c22ba77d3c6e458e1ccca
Component: engine
2016-10-18 12:27:59 -07:00
c0eebabe70
Service update failure thresholds and rollback
...
This adds support for two enhancements to swarm service rolling updates:
- Failure thresholds: In Docker 1.12, a service update could be set up
to either pause or continue after a single failure occurs. This adds
an --update-max-failure-ratio flag that controls how many tasks need to
fail to update for the update as a whole to be considered a failure. A
counterpart flag, --update-monitor, controls how long to monitor each
task for a failure after starting it during the update.
- Rollback flag: service update --rollback reverts the service to its
previous version. If a service update encounters task failures, or
fails to function properly for some other reason, the user can roll back
the update.
SwarmKit also has the ability to roll back updates automatically after
hitting the failure thresholds, but we've decided not to expose this in
the Docker API/CLI for now, favoring a workflow where the decision to
roll back is always made by an admin. Depending on user feedback, we may
add a "rollback" option to --update-failure-action in the future.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
Upstream-commit: 6d4b527699b3e95d21d79f6b327252a6cdaca5b0
Component: engine
2016-10-18 10:09:50 -07:00
4d36451135
Add bash completion for docker {run,create} --stop-timeout
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 38dc6106098784d4141140a6d3b946b080ba5878
Component: engine
2016-10-18 15:24:28 +02:00
23d87cfd7e
Added logentries dependency to vendor
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com >
Upstream-commit: 0f4db1cc59faddb0207db269fd660e8e1582b77a
Component: engine
2016-10-17 22:06:39 -02:00
cf21f12ebe
Improve bash completion of containers
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: b6237a8550685f865d0b8e366f4cec81fca7f4d8
Component: engine
2016-10-17 19:10:48 +02:00
da8e97fdca
Align bash completion of plugins to completion of nodes and services
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: adbb943200209ba668f065b296cec509b0169c53
Component: engine
2016-10-12 05:29:26 -07:00
03a7d7e8f9
Align bash completion of volumes to completion of nodes and services
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 06d4c117600c99cc6d5cefc26c6692282143ff8d
Component: engine
2016-10-09 04:46:20 -07:00
be8c9639a4
Align bash completion of networks to completion of nodes and services
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 5207fe75ae32ed36c4f2d30dc91d8611e34e61da
Component: engine
2016-10-08 10:50:31 -07:00
2e8039dc97
Merge pull request #25837 from reaperhulk/support-compressing-build-context
...
Add support for compressing build context during image build
Upstream-commit: f08a450ad35706900766e7766d30a90d688e410b
Component: engine
2016-10-05 12:57:46 -07:00
84ce717a7a
Merge pull request #27097 from albers/completion-node-ps-multiple-nodes
...
Add support for multiple nodes in bash completion for `docker node ps`
Upstream-commit: 367d5b02322b8211c18b95faba1527ec591045f5
Component: engine
2016-10-02 14:38:46 +02:00
9f3299176f
Add support for multiple nodes in bash completion for docker node ps
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: 9aeb69a0690d0d26bd3dea344f675b22f9ceda19
Component: engine
2016-10-02 05:18:32 -07:00
22e87ff2f2
Add bash completion for dockerd --init-path
...
Signed-off-by: Harald Albers <github@albersweb.de >
Upstream-commit: d710a3e1f8d1ffeeb141a08806e18623a36d2248
Component: engine
2016-10-02 05:10:00 -07:00
02efb59787
Add support for compressing build context during image build
...
When sending a build context to a remote server it may be
(significantly) advantageous to compress the build context. This commit
adds support for gz compression when constructing a build context
using a command like "docker build --compress ."
Signed-off-by: Paul Kehrer <paul.l.kehrer@gmail.com >
Upstream-commit: 4825e58a96188e6a9c739c31966c8ac5a2bbd1d7
Component: engine
2016-09-30 17:46:08 -05:00