1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command
Sebastiaan van Stijn 19bbb4e9f0
[17.03.x] fix autoremove on pre 1.25 API
Commit 87a53468b2 cherry-picked
changes into the 17.03 branch to make the client
skip auto-removing containers on API 1.25 and up.

Some changes got lost during that cherry-pick,
resulting in 17.03 clients to not fall back to
the old behavior when connecting to API version
1.24 or below.

This patch addresses this issue for the 17.03
branch by copying the `HostConfig.AutoRemove` property
to a local variable before it is overridden
in `ContainerCreate()`.

This change is not needed on "master" (17.04-dev),
which does not have this problem.

Thanks to Josh Hawn for finding this bug.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-03-09 11:59:11 +01:00
..
bundlefile Reinstate --bundle-file argument to 'docker deploy' 2016-11-10 11:28:18 -05:00
checkpoint Print checkpoint id when creating a checkpoint 2016-12-07 16:11:43 -08:00
commands secrets: secret management for swarm 2016-11-09 14:27:43 -05:00
container [17.03.x] fix autoremove on pre 1.25 API 2017-03-09 11:59:11 +01:00
formatter Merge pull request #30776 from WeiZhang555/stats-all-format-name-panic-cli 2017-02-17 22:04:16 -08:00
idresolver service ps: Truncate Task IDs 2016-11-08 16:17:15 -08:00
image Support for docker content trust for plugins 2016-12-27 14:27:28 -08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
network Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
node Revert "Add -a option to service/node ps" 2016-11-30 14:11:02 -08:00
plugin Add docker plugin upgrade 2017-02-03 19:14:56 -05:00
prune add docker network prune 2016-10-25 06:43:54 +00:00
registry Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
secret Add integration test for stack deploy with secrets. 2017-01-26 06:20:26 -08:00
service Fix misleading default for --replicas 2017-02-03 00:48:59 -08:00
stack Remove secrets as part of stack remove. 2017-01-26 06:20:49 -08:00
swarm swarm leave is not only for workers 2016-12-15 22:41:43 -08:00
system Ignore certificate expiry error for top-level inspect 2017-01-24 16:05:53 -08:00
task service ps: Revert output to 1.12 behavior. 2016-12-12 13:25:44 -08:00
volume Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
cli.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
events_utils.go Add subcommand prune to the container, volume, image and system commands 2016-09-29 07:42:53 -07:00
in.go Fix the incorrect description for NewInStream 2016-10-13 22:33:09 +08:00
out.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
registry.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
trust.go
utils.go Windows: Prompt fix 2016-12-13 17:09:29 -08:00