Commit Graph

31109 Commits

Author SHA1 Message Date
cd4e1aa1f7 Add more maintainers to "auto-assign"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: d10915ba6cbc534df6c1dd837e34d3c5097dbc25
Component: engine
2017-02-28 14:39:48 +01:00
399e8679bb Merge pull request #30843 from vdemeester/daemon-duplication-refactor
Few daemon duplication refactor
Upstream-commit: 98a1d9a7128025a2032d557303987a08fc89b17e
Component: engine
2017-02-28 13:14:07 +01:00
27f6b8793b Add a lockedManagerAction method to Cluster…
… in order to remove duplication.
Each time we update a cluster object, we do some common
operations (lock, verify it's on a manager, get the request context,
and the update). This introduce a method and refactor few
update/remove method that allows to duplicate less code.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 250e05e42773a875d2fb8248b94fa72f2934a4b6
Component: engine
2017-02-28 11:12:11 +01:00
922530d28e Refactor cpu-realtime file creation to remove duplication
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: f7819fcb25aaf5b08202db275847c825e7b09999
Component: engine
2017-02-28 11:12:06 +01:00
df7fcfe4bc Reduce duplication in graphdriver
Removes some duplication in counter.go and proxy.go

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 2028d8698d95fb73f0c59a548b8f2adbdf5057a4
Component: engine
2017-02-28 11:12:02 +01:00
7a647c8187 Extract common code from disconnectFromNetwork and releaseNetwork
Both method are trying to detach the container from a cluster
network. The code is exactly the same, this removes the duplication.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: cb6832c6d34cdce33341c4f71ba8f22a23608c70
Component: engine
2017-02-28 11:11:59 +01:00
8762483acd Refactor publish/expose filter to remove duplication
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: af0d9bdfe4a50c4c691e2939cb08dfb05dfa3688
Component: engine
2017-02-28 11:11:55 +01:00
f3e3af079e Introduce a CheckContainer to remove duplication
Some methods need to get a container *and* validate some conditon on
these (is the container running, …). The CheckContainer allows
to do that and helps remove some duplication.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 12485d62eeba27119260dc5eb54ac4fa83c3130b
Component: engine
2017-02-28 11:11:48 +01:00
8b38b2a363 Refactor endpoint*FromGRPC to limit duplication
endpointSpecFromGRPC and endpointFromGRPC do the exact same thing for
endpoint{,Spec}.Ports, let's extract that to a method.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: a620c0172c6f11c538b27a26fdb3e5cdd3bf2ff9
Component: engine
2017-02-28 10:51:55 +01:00
e64cb1f6c5 Remove daemon.VXSubnets duplicate code
Refactor daemon.V4Subnets and daemon.V6Subnets to limit duplication

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 3c5932086af51f57c497690ce3cf18a906b700cf
Component: engine
2017-02-28 10:51:40 +01:00
f2e35d377c Merge pull request #31393 from aaronlehmann/vendor-swarmkit-46bbd41
Vendor swarmkit 46bbd41
Upstream-commit: c956d25bfced952a40f001fe68c2e79eced3f200
Component: engine
2017-02-28 09:40:20 +01:00
ff610fa837 Merge pull request #31343 from aboch/vnd
Vendoring libnetwork @bdc9dce 
Upstream-commit: 7fb83eb7629856756e3ed7b1f20cedc87584354b
Component: engine
2017-02-27 15:06:03 -08:00
02cf046859 Merge pull request #31388 from ddingel/s390_add_yakkety
Add support for s390x ubuntu-yakkety deb
Upstream-commit: 406addf3f7d08cb4da92ac4e86560095567dc96b
Component: engine
2017-02-27 14:22:53 -08:00
0e38ed3ec3 Merge pull request #31398 from pjaffe/patch-1
Remove incorrect duplicate phrase from build.md
Upstream-commit: fb5ccc66054df1459d7844e237a2aaae085ec274
Component: engine
2017-02-27 23:08:47 +01:00
2fe0398b28 Remove incorrect duplicate phrase from build.md
A phrase from the "Text files" section in build.md was incorrectly duplicated under the "Tarball contexts" section.

Signed-off-by: Peter Jaffe <pjaffe@nevo.com>
Upstream-commit: 76235635753fd37e8f94ecc01088a12dc550d2e1
Component: engine
2017-02-27 17:05:24 -05:00
fc85392e4c Merge pull request #31071 from anusha-ragunathan/plugin_filter_network
Service creation using network plugin filters.
Upstream-commit: 52ce5c254880663e103e4e25f99700151ee6c2f8
Component: engine
2017-02-27 11:59:11 -08:00
dfcca19d95 Vendor swarmkit 46bbd41
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 99119fcafa41fb8c95e67b225a3da2902ce0e959
Component: engine
2017-02-27 11:51:00 -08:00
5b86384220 Merge pull request #31314 from williamh/split-openrc-log
contrib/init/openrc: allow separate logs for stdout and stderr
Upstream-commit: 8b6ae13c08ba9b649db463bbb92eade754df3e29
Component: engine
2017-02-27 19:31:57 +01:00
ff0d7abdb3 Merge pull request #31382 from albers/completion-build--add-host
Add bash completion for `docker build --add-host`
Upstream-commit: ce79f6b644fe9c56fab9701cbff872706278ab60
Component: engine
2017-02-27 15:25:12 +01:00
e678ceeeb0 Add support for s390x ubuntu-yakkety deb
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Upstream-commit: 7f54153ba868b55c79e86bfcff196df46b6c9017
Component: engine
2017-02-27 14:52:43 +01:00
b0b1bed2ba Add bash completion for docker build --add-host
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 8de3eb048658f54e4c1d95a9523130bbc33106c4
Component: engine
2017-02-27 12:56:57 +01:00
12aa0347d6 Merge pull request #30383 from TDAbboud/30096-add-host-docker-build
Add --add-host for docker build
Upstream-commit: a64ea37753fd9a94dfa3ab81f67f46df7bd641f8
Component: engine
2017-02-27 12:42:18 +01:00
458406a7f3 Merge pull request #31212 from fate-grand-order/fixed
use t.Fatal() to output the err message and fix typo
Upstream-commit: a6576b8a2bff0feeb67918403caa3df0c4c37673
Component: engine
2017-02-27 12:26:35 +09:00
1f44fb6e15 Merge pull request #31349 from Phineas/master
Update copyright dates
Upstream-commit: 60a94f7a04748490beaa3a2bad02734ad603b26c
Component: engine
2017-02-26 16:06:39 +01:00
e0954908a7 Merge pull request #31351 from dnephin/what-are-even-build-args
Refactor to remove duplicate code around BuildArgs
Upstream-commit: 24b4c9e7370222a9931678641b5ef7e66c2f6bc0
Component: engine
2017-02-26 16:04:30 +01:00
c38e6f3b83 Merge pull request #31363 from genki/fixed_typo_in_formatter
Fixed typo in service formatter.
Upstream-commit: 33ffb74d3c8a6c73747b042b7720cb5a6b29ff05
Component: engine
2017-02-26 06:24:05 -05:00
ee40a8603d Fixed typo.
Signed-off-by: Genki Takiuchi <genki@s21g.com>
Upstream-commit: d654c3d83152a4bf879ddf04ae637d1e424453ee
Component: engine
2017-02-26 12:59:18 +09:00
f19067fd22 Refactor to remove duplicate code around BuildArgs.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 6e005fd5ccd6ba90b51212c4a2539712b6398afd
Component: engine
2017-02-24 16:22:32 -05:00
4dd2c604b6 Update copyright dates
Signed-off-by: phineas <phin@phineas.io>
Upstream-commit: da8cf590eb56343f70d545c298a59d28f90eaf0f
Component: engine
2017-02-24 19:41:59 +00:00
958266ff9f Vendoring libnetwork @bdc9dce
Signed-off-by: Alessandro Boch <aboch@docker.com>
Upstream-commit: ff6a3bef5ab895bf87058f05b5e838afd8ba8393
Component: engine
2017-02-24 11:08:53 -08:00
ea150996ac Merge pull request #31192 from thaJeztah/warn-instead-of-error
don't log v2 pull as error when retrying
Upstream-commit: 55fcd6f4db6088be90eef1e521e5e2e89d0b71a1
Component: engine
2017-02-24 09:58:13 -08:00
853294b2c3 Merge pull request #31330 from albers/completion-fix-node-plus-self
Fix bash completion for `docker service ps --filter node`
Upstream-commit: 3470c8d7676ec7e16db2f2be32805c569ad9448e
Component: engine
2017-02-24 15:35:27 +01:00
e5b24c69a8 Merge pull request #31329 from albers/completion-desired-state-shutdown
Add completion for `--filter desired-state=shutdown`
Upstream-commit: d65a721f406297dc5ddd34cdf3a2a750fea99e15
Component: engine
2017-02-24 15:33:52 +01:00
e930fd0d7a Merge pull request #31331 from albers/completion-node-ls--filter-missing
Add bash completion for missing filters of `docker node ls`
Upstream-commit: a0993f6993a9f5e7be44108f5e1b6898a98b0a35
Component: engine
2017-02-24 15:33:27 +01:00
e0f0da5569 Merge pull request #31313 from dperny/31306-fix-specify-stdoutstderr
Fix service logs API to be able to specify stream
Upstream-commit: dd4a6c5affa60fda3affc2ab0e06ac4beb4c226e
Component: engine
2017-02-24 09:11:38 -05:00
535fd24050 Add bash completion for missing filters of docker node ls
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 23b0c39fa62e7f2a2e55c86754bd7d21cda53a72
Component: engine
2017-02-24 14:29:23 +01:00
722b0a19c5 log fallback errors as "info"
Fallback errors are not an error, but an
informational message.

This changes those errors to be logged
as "Info" instead of "Error".

After this patch, debug logs look like this;

    DEBU[0050] Calling GET /_ping
    DEBU[0050] Calling POST /v1.27/images/create?fromImage=localhost%3A5000%2Ffoo&tag=latest
    DEBU[0050] Trying to pull localhost:5000/foo from https://localhost:5000 v2
    WARN[0050] Error getting v2 registry: Get https://localhost:5000/v2/: http: server gave HTTP response to HTTPS client
    INFO[0050] Attempting next endpoint for pull after error: Get https://localhost:5000/v2/: http: server gave HTTP response to HTTPS client
    DEBU[0050] Trying to pull localhost:5000/foo from http://localhost:5000 v2
    INFO[0050] Attempting next endpoint for pull after error: manifest unknown: manifest unknown
    DEBU[0050] Trying to pull localhost:5000/foo from https://localhost:5000 v1
    DEBU[0050] attempting v1 ping for registry endpoint https://localhost:5000/v1/
    DEBU[0050] Fallback from error: Get https://localhost:5000/v1/_ping: http: server gave HTTP response to HTTPS client
    INFO[0050] Attempting next endpoint for pull after error: Get https://localhost:5000/v1/_ping: http: server gave HTTP response to HTTPS client
    DEBU[0050] Trying to pull localhost:5000/foo from http://localhost:5000 v1
    DEBU[0050] [registry] Calling GET http://localhost:5000/v1/repositories/foo/images
    ERRO[0050] Not continuing with pull after error: Error: image foo:latest not found

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 86061441593f8c768781681db2268bc1ab6d043e
Component: engine
2017-02-24 14:27:35 +01:00
af9590d791 Fix bash completion for docker service ps --filter node
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 4fb663a3b4068675db2d19571b7fe027e218bf4f
Component: engine
2017-02-24 14:09:26 +01:00
d7fbcdb6ac Add completion for --filter desired-state=shutdown
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 55fcfe7e8b3c47d2f9d97f41902f5ad56683b72c
Component: engine
2017-02-24 13:31:59 +01:00
1d2d461e40 Fix service logs API to be able to specify stream
Before this change, doing service logs was just tossing the stream
selectors and always using the default (both streams). This change adds
a check for which streams the user wants and only includes those.

Fixes #31306

Signed-off-by: Drew Erny <drew.erny@docker.com>
Upstream-commit: f63c62ce70d6ed4706dbde43feb22c6004c32061
Component: engine
2017-02-23 15:09:09 -08:00
c730591115 contrib/init/openrc: allow separate logs for stdout and stderr
Signed-off-by: William Hubbs <w.d.hubbs@gmail.com>
Upstream-commit: 65c1a3be5bf748f95edc45f1391c869bf4ff4a52
Component: engine
2017-02-23 17:07:26 -06:00
90c65de535 Merge pull request #31292 from albers/completion-exe
Activate bash completion for Windows executable
Upstream-commit: 87e45626f433e5cecd576c0a6fcae09158d95a5e
Component: engine
2017-02-23 10:47:24 -08:00
005a50dcf7 Merge pull request #30731 from shin-/plugin_privileges_param_fix
Parameter name in GetPluginPrivileges is "remote"
Upstream-commit: 8d28fc8fc4db3c89d20679a022ea9cb5d3644b44
Component: engine
2017-02-23 19:39:28 +01:00
38c03e66d8 Merge pull request #31291 from albers/docs-daemon-hosts
Clarify why `hosts` in `daemon.json` does not work
Upstream-commit: 27c9a6e9c22a6cf0c6dae7f59cf8f7d56a67f560
Component: engine
2017-02-23 10:47:26 -05:00
3a985ae2c1 Merge pull request #31282 from YuPengZTE/devPretty
Delete dots to align with other commands description
Upstream-commit: 89b193adbef142304606b3b7fea5471ac846a28e
Component: engine
2017-02-23 09:49:58 -05:00
3294f7201d Merge pull request #31278 from vieux/bump_containerd
update containerd to 665e84e6c28653a9c29a6db601636a92d46896f3
Upstream-commit: 07ca9109a3c7b95389a60c965fd14185cd0d81fc
Component: engine
2017-02-23 09:25:08 -05:00
3c43b79766 Activate bash completion for Windows executable
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 270a7bb5018e133deb40e4ff0cc88ea387d875bb
Component: engine
2017-02-23 14:45:18 +01:00
6e26e75ead Clarify why hosts in daemon.json does not work
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 340b75dd41d026e6f6072da851930d6802a1ee34
Component: engine
2017-02-23 14:03:58 +01:00
718b046537 Delete dots to align with other commands description
Signed-off-by: yupengzte <yu.peng36@zte.com.cn>
Upstream-commit: ec95ad7353b240542f73076dde975e392c281748
Component: engine
2017-02-23 16:46:08 +08:00
e252f084ae Merge pull request #31279 from aaronlehmann/shutdown-error-leakage
Shutdown leaks an error when the container was never started
Upstream-commit: 52ba250f7e1f504f2c984961fd7564cefec9c15e
Component: engine
2017-02-22 23:47:39 -08:00