Commit Graph

31121 Commits

Author SHA1 Message Date
Vincent Demeester 899dc9491e Add cli reference docs for root-level commands
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 9cea26bc7797789e4be2309153bd49c234544d2d
Component: engine
2017-03-27 11:10:58 +02:00
Vincent Demeester 617bd84818 Merge pull request #32119 from nogoegst/fix-openbsd-cli
Fix building client on OpenBSD
Upstream-commit: dc1f036772439d08c81cd8eef92d661b7fafbd0e
Component: engine
2017-03-27 09:52:50 +02:00
Vincent Demeester 1499a412b6 Merge pull request #31755 from miaoyq/heartbeat-maybe-zero
The variable heartbeat might be 0
Upstream-commit: e2f60837ebbf432b89af900105afe73121cf6c05
Component: engine
2017-03-27 09:39:01 +02:00
allencloud d840f6fbf0 remove redundant comments in test build.go
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 32b81dae29fbb6f831cda5e9db1c120f78cd4a91
Component: engine
2017-03-27 10:59:13 +08:00
allencloud 0bc9fdd1d1 make secret ls support filters in CLI
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 3935074016697b14023371b84b68c62fa1f3344e
Component: engine
2017-03-27 10:16:45 +08:00
Yanqiang Miao 92497be019 The variable heartbeat might be 0
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>

perfect the test case for 'discoveryOpts'

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
Upstream-commit: fb2bc3521069b55bbb342305e533e78682fbcc65
Component: engine
2017-03-27 10:07:58 +08:00
Alessandro Boch d79afa43f8 Allow user to modify ingress network
Signed-off-by: Alessandro Boch <aboch@docker.com>
Upstream-commit: d59d19c32818ed73cc6b4d153f2858c4fe97f50e
Component: engine
2017-03-26 15:46:18 -07:00
Ivan Markin d50bce7193 Fix building client on OpenBSD
Signed-off-by: Ivan Markin <twim@riseup.net>
Upstream-commit: 925bc27b8108a154161b578e176d2b7d79e8002c
Component: engine
2017-03-26 20:47:18 +00:00
Steve Durrheimer ea3425ec90 Add missing zsh completion for 'docker plugin ls'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: fd6e74491b812f548e999991200d3a784ea3b9f8
Component: engine
2017-03-26 17:33:05 +02:00
Steve Durrheimer 76a233e2ba Add zsh completion for 'docker network ls --filter scope'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 0bd255f39762d6c45c2b6a33f3467716ff8f3b42
Component: engine
2017-03-26 17:04:59 +02:00
Manjunath A Kumatagi 7006be9c48 Fix Healthcheck API doc
Signed-off-by: Manjunath A Kumatagi <mkumatag@in.ibm.com>
Upstream-commit: 4df54695ef12fa0ba474b571771ed09232ad00ba
Component: engine
2017-03-26 08:45:11 -04:00
Boaz Shuster abc5bcad87 Fix the create API when fromSrc has a bad URL
When sending a bad URL in the fromSrc parameter using cURL
the response will have status code 200 while it should have 404
or 500 (depends on the error).

This commit addresses this problem in the following ways:
 * Before, `src` was parsed using url.Parse and if the
   returned `url.Scheme` was empty it was set to 'http'
   and `url.Host` was set to `src`.
   This is bad because if `src` was 'web.com/tars/image1.tar'
   The `url.String()` returns 'web.com%2Ftars%2Fimage1.tar`
   which will cause the daemon to fail downloading the file
 * Before writing the "Downloading" message, the image
   is attempted to be downloaded and if there is no error
   the "Downloading" message is sent.

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
Upstream-commit: e050f1760dd8a3d48d95bb3d2de503fc4177ff5f
Component: engine
2017-03-26 15:21:13 +03:00
Joni Sar f1d1b03a72 Readme grammer fix
"Giving THE developer...." -> "to express all THEIR application's.."
A developer is single.
"Their" refers to plural (multiple developers).
So, adjusted to plural ("developers") so that the two will match.
 * The alternative would be to use "his / her" but that leads to gender reference issues, so the former alternative works better

Signed-off-by: Jonathan Saring <yoni@cocycles.com>
Upstream-commit: ce08e2a107bd43829ca6f7f394a10956c03ebe28
Component: engine
2017-03-26 14:59:14 +03:00
Vincent Demeester 6a15e35779 Merge pull request #32098 from anusha-ragunathan/volume-panic
Add non-nil check before logging volume errors.
Upstream-commit: 08544b1912734d31dac9632e9bfba07ed9601ff4
Component: engine
2017-03-26 12:45:22 +02:00
Vincent Demeester ee135bdc50 Merge pull request #31976 from Microsoft/jjh/csbooboo
Windows: Remove --credentialspec flag
Upstream-commit: ab08a571d1181833c5598ed3d27f9d2a924762d0
Component: engine
2017-03-26 12:44:27 +02:00
Sebastiaan van Stijn 0c4052f0d9 Merge pull request #32075 from uhayate/update_old_docs
update 3 old docs about secret in docs/reference/commandline/
Upstream-commit: a0b6edeb332e639dba35c53bda399dd56812a654
Component: engine
2017-03-26 12:41:37 +02:00
Vincent Demeester d81627e7d7 Merge pull request #32052 from Microsoft/jjh/revendorhcsshim
Revendor HCSShim @ v0.5.13
Upstream-commit: e065acc5fa2bf727ab72918e9a555571d83028be
Component: engine
2017-03-26 12:04:30 +02:00
Alexandre Garnier ac093860f7 Display created tags on successful build
Signed-off-by: Alexandre Garnier <alexandre.garnier@zenika.com>
Signed-off-by: Alexandre Garnier <zigarn@gmail.com>
Upstream-commit: d0052198300dfe9fd220f780184d1ec82c50006c
Component: engine
2017-03-25 11:46:20 +01:00
Tõnis Tiigi 9ede945f94 Merge pull request #32099 from dnephin/fix-test-stack-remove
Fix flaky TestStackRemove test
Upstream-commit: 773d3bb5a0693fb20f1f1c6a9713ebe180c808bf
Component: engine
2017-03-24 23:23:25 -07:00
Lei Jitang 892701d23b Fix docker logs a dead container
If a container is dead or marked for removal, the json log
file could have been removed, so docker logs will return
`<id>-json.log: no such file or directory`.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
Upstream-commit: 238ad8c36a57d5484aa21efa26a8244aa4b8dff7
Component: engine
2017-03-24 21:20:52 -04:00
Anusha Ragunathan 250a383735 Add non-nil check before logging volume errors.
Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
Upstream-commit: b1570baadd76377aaeb7199c95ad6dc11b38f302
Component: engine
2017-03-24 16:34:11 -07:00
Anusha Ragunathan b690579b15 Merge pull request #32095 from anusha-ragunathan/set-state
Explictly set state of a disabled plugin.
Upstream-commit: cddffe327ebdf88df94618babbb1206b3ac7c629
Component: engine
2017-03-24 14:03:32 -07:00
Daniel Nephin 7cc7eec39f Replace fmt.Errorf() with errors.Errorf() in the cli
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 7b7ea8ab810190018346cb7d84c161bb94f7ca60
Component: engine
2017-03-24 16:58:07 -04:00
Daniel Nephin ee11b02ced Fix external volume error to pass validation.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 72366869875f986fb0b22bcd66ce0fa5ed6288f9
Component: engine
2017-03-24 16:55:04 -04:00
Daniel Nephin c23fd44111 Fix flaky TestStackRemove test.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 73e6135458cfa09171526467b41b18890dc8b3d3
Component: engine
2017-03-24 15:31:08 -04:00
Thomas Tanaka de55ec79ea Update oracle linux selinux to match docker upstream
Add a dependency on specific selinux version for OL on docker-engine.spec

Signed-off-by: Thomas Tanaka <thomas.tanaka@oracle.com>
Upstream-commit: fc7cc1cc75b68005ad161dad53d696696b5c5f9f
Component: engine
2017-03-24 12:17:39 -07:00
Anusha Ragunathan 9e044dac67 Explictly set state of a disabled plugin.
While restoring plugins during daemon restart, some plugins can fail to
respond to net.Dial. These plugins should be explicitly set to disabled,
else they will retain their original state of enabled, which is
incorrect.

Tested with a plugin that fails to restart and observed that the state
was set to disabled.

Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
Upstream-commit: bbbf64f7128c3784f500cd15a994f20ab5d80920
Component: engine
2017-03-24 12:07:12 -07:00
Alessandro Boch 49cfd2488d Vendor libnetwork @b6cb1ee
Signed-off-by: Alessandro Boch <aboch@docker.com>
Upstream-commit: ff049a4d4d6ab98d6a49631f29c346ab6086cb84
Component: engine
2017-03-24 11:07:33 -07:00
Alessandro Boch c2f1681e6f Vendoring swarmkit @9fdea50
Signed-off-by: Alessandro Boch <aboch@docker.com>
Upstream-commit: 434e9695e42f9399c627d433972dbd73f7c8502f
Component: engine
2017-03-24 11:07:33 -07:00
Daniel Nephin 20ac55606f Fix --label being env var expanded.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 434d77bc0edf21b970e0414ee54112768a490aaa
Component: engine
2017-03-24 12:29:14 -04:00
Daniel Nephin 3bea1ce0e2 Fix --label on docker build when a single quote is used in the value
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 726fb269cf004814bd7065ca2f29f6955746a9d9
Component: engine
2017-03-24 12:29:14 -04:00
Daniel Nephin fa11164129 Refactor some builder code
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: d7807c73169469c50e551704cc1957f798868f71
Component: engine
2017-03-24 12:29:14 -04:00
Daniel Nephin 2c87cf80c3 Cleanup compose convert error messages.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: b03a18572363560845439eec041502014da85128
Component: engine
2017-03-24 10:43:28 -04:00
Ian Philpot c6513c704e Updated push.md with progress bar info
Signed-off-by: Ian Philpot <ian.philpot@microsoft.com>
Upstream-commit: f426e8cb82756a43c2b1018d2cb98142b06eb3e0
Component: engine
2017-03-24 10:25:52 -04:00
Harald Albers 2d2f5a3bba Add bash completion for network ls --filter scope
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 4dd461a6bfc77a652ea08744741e64c3ae5f13a3
Component: engine
2017-03-24 13:06:26 +01:00
Sebastiaan van Stijn fd9c0e1e49 Merge pull request #31529 from yongtang/31324-network-ls-filter-scope
Add `--filter scope=swarm|local` for `docker network ls`
Upstream-commit: 4e290f7a2b9fb1fc808cece50dc7d8e31da0f963
Component: engine
2017-03-24 12:26:10 +01:00
uhayate 3747c785b6 update 3 old docs about secret in docs/reference/commandline/
Signed-off-by: uhayate <uhayate.gong@daocloud.io>
Upstream-commit: 208653e712dfaf4ee3be0cf5c33cbb8cbfa7421d
Component: engine
2017-03-24 18:42:38 +08:00
Vincent Demeester 48a5bc9c2a Merge pull request #32071 from tonistiigi/fix-integration-tests
Fix integration tests build errors
Upstream-commit: 9a2dcf6a15f6b7b46349a1d3b84388b4d37dc154
Component: engine
2017-03-24 10:30:42 +01:00
Vincent Demeester d952883696 Merge pull request #32042 from vdemeester/compose-interpolate-error-instead-of-panic
[compose/interpolation] Make sure we error out instead of panic during interpolation
Upstream-commit: 8d2a82853c3401bdffbcc91b12399ef6589d26d0
Component: engine
2017-03-24 09:00:06 +01:00
Tonis Tiigi 703c536b96 Fix integration tests build errors
Caused by a merge conflict.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: 4c7710d5d02acf42efa667fc33cb877385f2bbeb
Component: engine
2017-03-24 00:27:32 -07:00
Akihiro Suda dd50f0df64 Merge pull request #31608 from vdemeester/integration-cli-package
[test-integration] Introduce a `cli` package for test-integration
Upstream-commit: 8008f6529394d8c458ccf58f4763754681568b57
Component: engine
2017-03-24 13:04:47 +09:00
Tõnis Tiigi c90ad1369f Merge pull request #31257 from tonistiigi/nested-build
build: add multi-stage build support
Upstream-commit: 2fa8fe400d926b3ceb0c84640a8f4e0f36e51463
Component: engine
2017-03-23 19:14:13 -07:00
Yong Tang d918c4ba81 Add --filter scope=swarm|local for docker network ls
This fix tries to address the request in 31324 by adding
`--filter scope=swarm|local` for `docker network ls`.

As `docker network ls` has a `SCOPE` column by default,
it is natural to add the support of `--filter scope=swarm|local`.

This fix adds the `scope=swarm|local` support for
`docker network ls --filter`.

Related docs has been updated.

Additional unit test cases have been added.

This fix fixes 31324.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 704ea8f6b4ad6f43c348affe357994d440aaf3de
Component: engine
2017-03-23 18:48:11 -07:00
Tibor Vass 9a572f349e Merge pull request #31629 from darrenstahlmsft/ShutdownLock
Windows: Stop holding client container lock during shutdown
Upstream-commit: caf8d884aadd4cc56c1ffb524ce9b6d51ad63d88
Component: engine
2017-03-23 18:16:56 -07:00
Tonis Tiigi dc0d47d701 Fix relative path on windows for uuid paths
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: 684633f734f86b6a66873b42c9356eb543e12917
Component: engine
2017-03-23 15:12:19 -07:00
Tonis Tiigi e59b5a1439 Add support for COPY from previous rootfs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: f95f58283b2a69f4fd06d01de2281641e09b06bb
Component: engine
2017-03-23 15:12:15 -07:00
Christopher Jones 1306eb6de7 Fix flaky test DockerRegistryAuthTokenSuite.TestPushMisconfiguredTokenServiceResponseError
Fixes test by bumping retry count from 4 to 10

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
Upstream-commit: a96bf0fb2f2803523fd2dff935b8093d0c50f8f1
Component: engine
2017-03-23 18:10:11 -04:00
Brian Goff 1faeba234d Merge pull request #31668 from Microsoft/jjh/nopidfileasservice
Windows: no pidfile when service
Upstream-commit: b47c50cf11a48c068e8794af1cd2bfebdae90995
Component: engine
2017-03-23 17:10:35 -04:00
Brian Goff 80cfdf07d5 Merge pull request #31626 from darrenstahlmsft/WindowsUpdateContainer
Windows: Add missing HostConfig fields to update block
Upstream-commit: c1d40ade5d99f6886cd9ac7b1d26e4db29eaac30
Component: engine
2017-03-23 16:54:03 -04:00
Brian Goff d4d4f16a60 Merge pull request #32019 from anusha-ragunathan/plugin-sigkill
Add missing test for daemon kill with plugins running.
Upstream-commit: fd56e8ffa14399c8a5d65598de70c4692f222d8f
Component: engine
2017-03-23 15:46:59 -04:00