Commit Graph

28545 Commits

Author SHA1 Message Date
a6532984af add integration test for FQDN hostname
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 950792dc6d26b6ec6d62579ada57570acedcd0ee
Component: engine
2017-01-17 11:01:59 +01:00
ebded88db1 fix the bare url and the Summary of http://semver.org
Signed-off-by: yupengzte <yupeng36@zte.com.cn>
Upstream-commit: 1f925d1d5cd4b6501ee67b04823f89625c664c29
Component: engine
2017-01-17 16:20:11 +08:00
ffb1102793 Merge pull request #30181 from albers/completion--filter-until
Add bash completion for `container|image|network prune --filter until`
Upstream-commit: a7c3389a8223449ed72d796b33a667e603811db8
Component: engine
2017-01-16 08:47:34 -08:00
a55818daf9 Merge pull request #30113 from thaJeztah/fix-autoremove-on-older-api
Don't use AutoRemove on older daemons
Upstream-commit: e74623d283111dc6492b1a97a8299a9377794b99
Component: engine
2017-01-16 08:40:00 -05:00
2292a0956f Add bash completion for container|image|network prune --filter until
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 217786423cfab26b4d7370f5cc1f4da9f4ca3c1e
Component: engine
2017-01-16 10:47:52 +01:00
58253ac5ca Merge pull request #30058 from vdemeester/integration-build-cmd-clean
[test-integration] clean docker_cli_build_test.go
Upstream-commit: dcf1264f1cbf4c5af7450357fad027c9a910808d
Component: engine
2017-01-16 18:16:49 +09:00
485690f98a Merge pull request #30163 from albers/completion-fix-hide-legacy-commands
Fix treatment of DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Upstream-commit: fd0ea7693143b1eecf3c6bba52e091f3f793af99
Component: engine
2017-01-16 10:01:44 +01:00
9f48176b5c Merge pull request #30151 from tonistiigi/fix-defunct
Avoid defunct registry/notary processes during tests
Upstream-commit: ead8ce2431988170b8c89dbd8053d1824e9a919d
Component: engine
2017-01-16 08:55:16 +01:00
b41bc838ac Merge pull request #30140 from mlaventure/remove-fifo-timeout
Remove timeout on fifos opening
Upstream-commit: 582c5b76529b8ae36be038df814ceaded697de14
Component: engine
2017-01-15 22:47:30 +01:00
ad5a24f0ae Merge pull request #28690 from zteBill/volume-errorinfo-inexact
repeated volume create information
Upstream-commit: fa4f09194f7dd6687ac073f51ab344de2f165071
Component: engine
2017-01-15 17:10:27 +01:00
93d29be66d Refactor docker_cli_build_test.go
Use `testutil/cmd` for `buildCommand`.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: c778f4b964934aeaf0d86d79ea7397940b303238
Component: engine
2017-01-15 16:48:08 +01:00
5b63ac99e9 Merge pull request #30143 from tophj-ibm/multi-get-go-from-own-dockerfile
[multi-arch] get go version from arch dockerfile
Upstream-commit: 96f7cf254babd715bb675d36d26d246f520c710a
Component: engine
2017-01-15 15:47:55 +01:00
474b446ade Merge pull request #30169 from runcom/fix-quoting
image: tarexport: do not quote integers in format string
Upstream-commit: 957a77f2e2c3c0b507b9a7152a37fec408336f11
Component: engine
2017-01-15 15:47:34 +01:00
c249c5ced8 Don't use AutoRemove on older daemons
Docker 1.13 moves the `--rm` flag to the daemon,
through an AutoRemove option in HostConfig.

When using API 1.24 and under, AutoRemove should not be
used, even if the daemon is version 1.13 or above and
"supports" this feature.

This patch fixes a situation where an 1.13 client,
talking to an 1.13 daemon, but using the 1.24 API
version, still set the AutoRemove property.

As a result, both the client _and_ the daemon
were attempting to remove the container, resulting
in an error:

    ERRO[0000] error removing container: Error response from daemon:
    removal of container ce0976ad22495c7cbe9487752ea32721a282164862db036b2f3377bd07461c3a
    is already in progress

In addition, the validation of conflicting options
is moved from `docker run` to `opts.parse()`, so
that conflicting options are also detected when
running `docker create` and `docker start` separately.

To resolve the issue, the `AutoRemove` option is now
always set to `false` both by the client and the
daemon, if API version 1.24 or under is used.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 0ea7b143b0a8366799c83a955be676aaf1345214
Component: engine
2017-01-15 01:59:57 +01:00
58316308f8 Merge pull request #29831 from vdemeester/integration-small-cleanups
[test-integration] Small cleanups on integration cli
Upstream-commit: 24c4226dc7675e114463654f138e00a229b73a02
Component: engine
2017-01-14 16:43:39 -05:00
848651eae6 Merge pull request #29902 from caervs/add_autorestart
Add on-failure to default restart policy
Upstream-commit: 0fcd55072b0199db5f24be66ff92ce6c0e771e01
Component: engine
2017-01-14 16:40:02 -05:00
fed9eaa59d Merge pull request #29856 from Microsoft/jjh/warntoout
Windows to Linux build warning to stdout
Upstream-commit: 7d24cc7710f49f1f3caadf15d9eddb7e3b7a5f0d
Component: engine
2017-01-14 16:37:31 -05:00
4e32e40a14 image: tarexport: do not quote integers in format string
Basically, prevents outputs like:
```
invalid manifest, layers length mismatch: expected '\x02', got '\x01'
```

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream-commit: 675f4140e735c71d917241ddfa0d51092aa8bc56
Component: engine
2017-01-14 20:03:11 +01:00
14a5593af8 Merge pull request #30108 from thaJeztah/update-changelog-1.12.6
Update changelog on master with changes from 1.12.x
Upstream-commit: a4bc730298c8ce422889b0ca6ada03957f2b7273
Component: engine
2017-01-14 18:11:45 +01:00
fa34b27dd9 Merge pull request #30150 from anusha-ragunathan/pluginv1_vol
Fix pluginv1 Windows volumes
Upstream-commit: 60fb79e0dc6b81e2f618759599b6f15a5222b8ce
Component: engine
2017-01-14 11:35:05 -05:00
19d7fa6701 Merge pull request #30164 from xulike666/fix-typo-5/36
fix typo in container/container.go 
Upstream-commit: b65f7ea7ae255a0a59c6b5c9667b78db6c9b4f70
Component: engine
2017-01-14 09:14:52 -05:00
ea092d3119 Merge pull request #30125 from albers/completion-plugin-install--disable-content-trust
Add bash completion for `plugin install --disable-content-trust`
Upstream-commit: 1bbd75c743df8310fefb7ac026e7aa1d8228cac1
Component: engine
2017-01-14 09:04:51 -05:00
534eaa5cc1 Merge pull request #30103 from TDAbboud/29961-add-error-checking
Add error checking for hostPort range
Upstream-commit: 78db6379a85de68ba1b5fb39421a8fa8b56cd28b
Component: engine
2017-01-14 08:43:27 -05:00
210ffa1f3c Merge pull request #30161 from xulike666/fix-typo-4/36
fix typo in api/types/client.go
Upstream-commit: 728566c4ad93f84469ffa8406b6a3cb4ea9f74a6
Component: engine
2017-01-14 08:24:49 -05:00
c2ac78f864 Fix treatment of DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 12952f537cf1851bfe84706a4e0eb283dc970379
Component: engine
2017-01-14 04:48:41 -08:00
3f53a9ea1d fix typo in container/container.go
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
Upstream-commit: 32035ffea57ef566a80a98ab69f9d30b55b59c08
Component: engine
2017-01-14 15:23:33 +08:00
1145a3c593 fix typo in api/types/client.go
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
Upstream-commit: c8fd28f12e501c3ba1bea9d380a38f4af8319a41
Component: engine
2017-01-14 15:10:08 +08:00
8a50ed9dc7 fix typo in api/types/time/timestamp.go
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
Upstream-commit: 2859ce6a577a9eac2c1610b76c156a5eb06cee83
Component: engine
2017-01-14 14:16:03 +08:00
da84729671 Avoid defunct registry/notary processes during tests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: 09dbce5f5af99509a98827e1a8c34df3a00682eb
Component: engine
2017-01-13 17:45:14 -08:00
964854de91 Fix pluginv1 Windows volumes
c54b717 caused a regression for pluginv1 on Windows, where extraneous
backslashes were added to BasePath of the plugin. For pluginv1 on windows,
BasePath() should return an empty string, since the plugin is fully aware
of the mount path. Also, unlike Linux where all paths are relative to "/",
Windows paths are dependent on system drives and mapped drives.

Fixes #30148

Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
Upstream-commit: 0ef21eb0e30d2ea036730a7c5502f888c6b763d1
Component: engine
2017-01-13 17:01:48 -08:00
af2c613c23 Add error checking for hostPort range
This fix catches the case where there is a single container port
and a dynamic host port and will fail out gracefully
Example docker-compose.yml snippet:
    port:
        ports:
            - "8091-8093:8091"
            - "80:8080"

Signed-off-by: Tony Abboud <tdabboud@hotmail.com>
Upstream-commit: 135f8f967488f171fcda6c66d7fa35726edaf19c
Component: engine
2017-01-13 18:05:51 -05:00
aa503cd1f7 Merge pull request #30112 from Microsoft/jjh/graphdriver
Windows: Remove redundant 'GraphDriver() func
Upstream-commit: 1eafa0f706931a0f3f73c756df3fa50639eae7a2
Component: engine
2017-01-13 13:59:12 -08:00
b1a42a3384 [multi-arch] get go version from arch dockerfile
Changes a couple of generate scripts so that the architecture
gets the go version from its own Dockerfile. This should cover a
rare case where the go version might have to be different from
the x86 Dockerfile.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
Upstream-commit: fa17ac256019729a15f6c33c2c2dad34acef9e4a
Component: engine
2017-01-13 16:48:41 -05:00
3650feec46 Merge pull request #28720 from jlhawn/add_secret_update_method
Add SecretUpdate method to client
Upstream-commit: bd9361b8105518a9331f17d3f5fb2deed6a16c13
Component: engine
2017-01-13 21:28:43 +01:00
2d095c22c0 Remove timeout on fifos opening
Instead of a timeout the context is cancelled on error to ensure
proper cleanup of the associated fifos' goroutines.

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: c178700a0420118fe7f632af4da1bc43abd3a9bf
Component: engine
2017-01-13 11:46:48 -08:00
0b5a082fc0 Merge pull request #30131 from xulike666/fix-typo
fix typo in mount.go
Upstream-commit: ca00c185304c630fa7d24d7b7bb4781849f7f8ea
Component: engine
2017-01-13 20:40:34 +01:00
29e36c572d Add SecretUpdate docs to api/swagger.yaml
Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
Upstream-commit: 1cd5af59bffb6ee38f3599443abdcc30359bd521
Component: engine
2017-01-13 09:51:12 -08:00
fe46c62362 Add SecretUpdate method to client
closes #28678

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Update cli/command/service/update_test.go

Fixes test build error:

  secretAPIClientMock does not implement "github.com/docker/docker/client".SecretAPIClient (missing SecretUpdate method)

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
Upstream-commit: 77b8465d7e68ca102d7aae839c7b3fe0ecd28398
Component: engine
2017-01-13 09:51:05 -08:00
68df9002fb Merge pull request #30120 from thaJeztah/revert-argument-name-change
revert "virtualSize" name change
Upstream-commit: f858d49483289e8f25378a66b9b72dc08d2d9974
Component: engine
2017-01-13 08:54:27 -08:00
8146a5de0f Merge pull request #30132 from albers/completion_hide_legacy_commands
Honour $DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Upstream-commit: 2dd3aa608dbb5bbd6d656cda61bed13310e88496
Component: engine
2017-01-13 16:18:58 +01:00
2ac8b7a385 Honour $DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: aa006f128065fa8b1f017d1fdfdfebdbd08e31c9
Component: engine
2017-01-13 15:43:52 +01:00
af9ca905a5 fix typo in mount.go
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
Upstream-commit: e0621c53af1ac7dfb63f212743db17a0d67ca0e6
Component: engine
2017-01-13 22:36:32 +08:00
c5380c7534 Clarify cp documentation behaviour with trailing "/."
Issue #30082 demonstrated that their is possible confusion with the "/."
where the tailing "." can appear to be merely punctuation within the
document rather than a highly pertinent part of `SRC_PATH`.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
Upstream-commit: fca6cda4b0307d1268e684dde65e6a916d729d04
Component: engine
2017-01-13 13:58:25 +00:00
1823a6c5fd Add bash completion for plugin install --disable-content-trust
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 725a864a0496a6c10f56c30f8a45234230951343
Component: engine
2017-01-13 11:56:50 +01:00
9875c5c0d3 revert "virtualSize" name change
Commit b717de5153db503fae61c11e30f04f400f66a6fd
changed the name of the "size" argument to
"virtualSize", as the "VirtualSize" field
was re-used for calculating the size of all
layers _not_ used by other images.

be20dc15af0cb281bd6d11586cfcc96bd50d12ca reverted
the change in calculation, but did not change
the argument name back to "size".

This changes the name back to its original
name, because since the introduction of the
content-addressable store in docker 1.10,
there no longer is a "virtual" size, so
"size" is a better name for this argument.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 22c411517a4a203690edb52fa42f8d5b43252882
Component: engine
2017-01-13 10:25:03 +01:00
a9065717ae Merge pull request #30061 from yongtang/30027-docker-images-v1.12
Fix `Size` in `docker images` for v1.12 client to v1.13 daemon
Upstream-commit: 0b09d6bfa7af18763d0f4a74f179117a73e70e46
Component: engine
2017-01-13 02:11:48 +01:00
2cf38188cb Merge pull request #30039 from ripcurld0/specify_line_no_dockerfile_err
Specify in which line the Dockerfile parser failed
Upstream-commit: 597843e79040a4f00bfe2abd83343d43edd195f5
Component: engine
2017-01-12 19:48:45 -05:00
9768c5da08 Windows: Remove redundant 'GraphDriver() func
Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 2cd8bcd7df1b1a204fe20118afe9556fe5a0b7ba
Component: engine
2017-01-12 15:32:46 -08:00
5db27accf5 Merge pull request #30106 from runcom/fix-upgrade-from-1.10
daemon: honor default runtime when starting containers
Upstream-commit: f65212d5b96a18349b0f436c35f99e4eed13f7c9
Component: engine
2017-01-12 14:44:37 -08:00
89de8e187c daemon: honor default runtime when starting containers
If you created containers from pre-OCI docker (e.g. docker-1.10.x)
upgrade may fail when restarting containers if the new docker daemon
has `--default-runtime` set.

In Fedora, we ship docker 1.12.6 with:

```
--default-runtime=oci
--add-runtime oci=/usr/libexec/docker/docker-runc-current
```

That way we don't rely on `docker-runc` being in `$PATH`.

The issue is, on upgrade from docker 1.10.3 without this patch, the
default runtime in `daemon/start_linux.go` is unconditionally set to
`runc=docker-runc` without honoring the `--default-runtime` flag set in
the docker daemon.

Reproducer:

- (1.10.3) `docker run -d -p 5000:5000 --restart=always --name registry
registry:2`
- upgrade to docker 1.12.6 (1.11.x has likely the same issue)
- the registry container fails to restart on upgrade with the following
log message `error="exec: \"docker-runc\": executable file not
found in $PATH: \"\""`

That error comes from the fact that we're setting the runtime in the
container's HostConfig to `runc` where instead we should have honored
the `--default-runtime` flag (in our case that's set to `oci`).

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream-commit: 9391a822ea4bee60284b4b2eb3a6535e20492569
Component: engine
2017-01-12 20:36:22 +01:00