Commit graph

26649 commits

Author SHA1 Message Date
Sebastiaan van Stijn
88a6a7763b Merge pull request #25726 from vieux/new_plugin_system_doc
adding some documentation about the new plugin system
2016-08-18 17:20:09 +02:00
Sebastiaan van Stijn
90308fd783 Merge pull request #25792 from lixiaobing10051267/masterSwarmLeave
Specify woker node for docker swarm leave command
2016-08-18 17:08:41 +02:00
Sebastiaan van Stijn
840a198280 Merge pull request #25812 from johananl/patch-1
Update device-mapper-driver.md
2016-08-18 17:08:14 +02:00
Vincent Demeester
d854c4fcc6 Merge pull request #25815 from justincormack/capdoc
Split list of capabilities into those added by default and those not
2016-08-18 15:26:59 +02:00
Vincent Demeester
3cebff8b86 Merge pull request #25785 from WeiZhang555/fix-flaky-external-volume-driver
bugfix: report "destroy" after all volumes of container destroy
2016-08-18 09:58:54 +02:00
Tibor Vass
1b954973cc Merge pull request #25825 from cpuguy83/25821_fix_nil_opts
Fix volume not working after daemon restart
2016-08-17 20:15:34 -07:00
Doug Davis
79210b9d5a Merge pull request #25822 from Microsoft/jjh/typo
Fix minor comment typo.
2016-08-17 22:07:36 -04:00
lixiaobing10051267
fd660e21bf Specify woker node for docker swarm leave command
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
2016-08-18 09:35:11 +08:00
Brian Goff
246d1eb58e Fix volume not working after daemon restart
When the daemon is started, it looks at all the volumes and checks to
see if any of them have mount options persisted to disk, and loads them
from disk if it does.

In some cases a volume will be created with an empty map causing the
options file to be persisted and volume options set to a non-nil value
on daemon restart... this causes problems later when the driver checks
for a non-nil value to determine if it should try and mount with the
persisted volume options.

Ensures 2 things:

1. Instead of only checking nilness for the opts map, use `len` to make
sure it is not an empty map, which we don't really need to persit.

2. An empty (or nulled) opts.json will not inadvertnatly set volume
options on daemon restart.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-08-17 20:36:17 -04:00
John Howard
d56c2ea9ed Fix minor typo
Signed-off-by: John Howard <jhoward@microsoft.com>
2016-08-17 16:10:01 -07:00
Justin Cormack
b0b3249bc2 Merge pull request #25801 from thaJeztah/improve-volume-validation-message
improve error message for volume names that are too short
2016-08-17 23:33:08 +01:00
Alexander Morozov
a1fece6821 Merge pull request #25808 from justincormack/parallel-tests
Run seccomp tests in series not parallel
2016-08-17 14:50:24 -07:00
Justin Cormack
bf7a3f0104 Split list of capabilities into those added by default and those not
The documentation was a bit unhelpful as to what are the default
capabilities, so split.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-08-17 21:16:54 +01:00
Brian Goff
d8e12f8755 Merge pull request #25809 from justincormack/patricia
Update go-patricia to 2.2.6
2016-08-17 15:25:17 -04:00
Johanan Lieberman
086542a687 Update device-mapper-driver.md
Signed-off-by: Johanan Lieberman <johanan.lieberman@gmail.com>
2016-08-17 21:58:30 +03:00
Alexander Morozov
2d93186e00 Merge pull request #25805 from crosbymichael/oci-import-paths
Replace old oci specs import with runtime-specs
2016-08-17 11:07:13 -07:00
Justin Cormack
d16f96262e Update go-patricia to 2.2.6
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-08-17 19:02:32 +01:00
Justin Cormack
84ec04306c Run seccomp tests in series not parallel
Fix #24803 as this had been failing sometimes.

As the parallel tests are probably genuine failures, and
had already been cut down, I will re-create these specifically
as a parallel execution test with no seccomp to make the
cause clearer.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-08-17 18:48:06 +01:00
Michael Crosby
041e5a21dc Replace old oci specs import with runtime-specs
Fixes #25804

The upstream repo changed the import paths.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-08-17 09:38:34 -07:00
Sebastiaan van Stijn
2ae49a0887 Merge pull request #25789 from sdurrheimer/zsh-completion-network-volume-ls-format
Add zsh completion for 'docker {network,volume} ls --format'
2016-08-17 16:51:51 +02:00
Sebastiaan van Stijn
b4abe38d43 Merge pull request #25709 from thaJeztah/fix-missing-docs-for-binary-remote-context
Add missing docs about binary remote contexts
2016-08-17 16:43:35 +02:00
Sebastiaan van Stijn
8d5a615045
improve error message for volume names that are too short
this improves the error message if a user tries to
create a volume with a single-character name:

Before this change:

    docker volume create --name a
    Error response from daemon: create a: "a" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed

After this change:

    docker volume create --name a
    Error response from daemon: create a: volume name is too short, names should be at least two alphanumeric characters

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-08-17 16:40:24 +02:00
Sebastiaan van Stijn
a5ba032c74 Add missing docs about binary remote contexts
This feature was added in docker 1.8, through
7491f9a9c1.

However, the API docs ended up in the wrong
API version (1.19 instead of 1.20), so were
never included in future API docs.

Also, the CLI docs got lost during splitting
up the cli.md docs into separate files;
561bfb268d

This moves the API docs to the correct
versions, and restores the CLI documentation.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-08-17 16:15:59 +02:00
Phil Estes
3473980a29 Merge pull request #25771 from mrunalp/allow_host_ns_with_user
Allow using --pid=host and --net=host when --userns=host
2016-08-17 09:57:30 -04:00
Sebastiaan van Stijn
2c224e4fc0 Merge pull request #25788 from sdurrheimer/zsh-completion-volumes-ls-filter-label
Add zsh completion for 'docker volume ls --filter label'
2016-08-17 11:11:27 +02:00
Sebastiaan van Stijn
5e2a519957 Merge pull request #25634 from darrenstahlmsft/RevendorHcsshim
Revendor hcsshim to v0.4.1
2016-08-17 10:50:00 +02:00
Sebastiaan van Stijn
45cb33e65c Merge pull request #25704 from thaJeztah/cleanup-api-markdown
Cleanup API docs Markdown formatting and wording
2016-08-17 10:39:45 +02:00
Vincent Demeester
bbd5396955 Merge pull request #25751 from yuexiao-wang/clean-docs
Remove mess words in installation doc
2016-08-17 09:59:36 +02:00
Vincent Demeester
10a3a269a0 Merge pull request #25783 from tonistiigi/fix-retry
Fix retry logic for out of sequence errors
2016-08-17 09:56:06 +02:00
Vincent Demeester
32aad511f8 Merge pull request #25778 from KostyaSha/patch-5
Don't confuse with sub-node
2016-08-17 09:50:22 +02:00
yuexiao-wang
f8d5b88072 remove mess words in installation doc
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
2016-08-17 15:43:52 +08:00
Vincent Demeester
27043ab718 Merge pull request #25368 from thaJeztah/remove-unused-size-parameter
Remove unused "size" query parameter for images
2016-08-17 09:28:51 +02:00
Steve Durrheimer
25009687be
Add zsh completion for 'docker {network,volume} ls --format'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-08-17 08:21:15 +02:00
Steve Durrheimer
d1870019a0
Add zsh completion for 'docker volume ls --filter label'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-08-17 08:15:26 +02:00
Victor Vieux
79aa2b9f6d fix broken link
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-08-16 21:26:07 -07:00
Zhang Wei
4df77c11e0 bugfix: report "destroy" after all volumes of container destroy
fixes #25766

If a container's AutoRemove is enabled, client will wait until it's
removed after container exits, this is implemented based on "destroy"
event.

Currently an "AutoRemove" container will report "destroy" event to
notify a hanging client to exit before all volumes are removed, this is
wrong, we should wait container until everything is cleaned up.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2016-08-17 11:02:16 +08:00
Tonis Tiigi
157561e95c Fix retry logic for out of sequence errors
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2016-08-16 18:57:01 -07:00
Darren Stahl
c58d0358c3 Revendor hcsshim
Signed-off-by: Darren Stahl <darst@microsoft.com>
2016-08-16 17:28:49 -07:00
Sebastiaan van Stijn
1a2038c54f Remove unused "size" query parameter for images
Image inspect doesn't have a "size" query parameter.
The client sent this (when doing `docker inspect --size`),
but was unused in the daemon.

This removes the unused parameter, and a test that
didn't actually test anything.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-08-17 01:19:07 +02:00
Kanstantsin Shautsou
57db05cb10
Don't confuse with empty body
It fails with any (even empty) json request body.

Signed-off-by: Kanstantsin Shautsou <kanstantsin.sha@gmail.com>
2016-08-17 02:01:04 +03:00
Tibor Vass
6e70a976ba Merge pull request #25638 from anusha-ragunathan/fix-plugin-tests
Debugging issue #25511
2016-08-16 15:13:31 -07:00
Brian Goff
37302bbb3f Merge pull request #25721 from cpuguy83/revendor_engine-api
revendor engine-api
2016-08-16 17:18:43 -04:00
Mrunal Patel
3c3d2bf852 Allow using --pid=host and --net=host when --userns=host
It is safe to set other namespaces to host when user ns is set to host

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-08-16 14:16:14 -07:00
Charles Smith
a7a70433ca edit plugin system doc, fix menu system
Signed-off-by: Charles Smith <charles.smith@docker.com>
2016-08-16 13:36:17 -07:00
Tibor Vass
1225e3e621 Merge pull request #25765 from tonistiigi/publish-add
Add retry checks to TestSwarmPublishAdd
2016-08-16 13:30:31 -07:00
Brian Goff
9ff0ab71a0 Bump docker-py
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-08-16 14:48:48 -04:00
Brian Goff
6d98e344c7 revendor engine-api
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-08-16 14:16:12 -04:00
Tonis Tiigi
7bd1c11959 Add retry checks to TestSwarmPublishAdd
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2016-08-16 10:39:05 -07:00
Tõnis Tiigi
9a3e7d9e34 Merge pull request #25701 from WeiZhang555/update-conflict-rm-restart
Forbid update restart policy of container with AutoRemove flag
2016-08-16 10:37:45 -07:00
Brian Goff
d7753dceb8 Merge pull request #25746 from lixiaobing10051267/masterName
wrong id when testing exists in daemon aufs
2016-08-16 13:00:03 -04:00