Commit Graph

31121 Commits

Author SHA1 Message Date
Andrea Luzzardi 9de0bed2e4 service logs reference documentation
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 97e4bff6b2035f24306f41ef83eb4d79e53d354b
Component: engine
2016-11-10 13:46:03 -08:00
Andrea Luzzardi 050cbb7ecd cli: docker service logs support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: c7995fdc7760c23cdbed0fa4ca229517c71dba82
Component: engine
2016-11-10 13:46:02 -08:00
Andrea Luzzardi 4d22d82151 api: Service Logs support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 819d0159bbda1b3ae53bdaa9a3e62ac98497e24c
Component: engine
2016-11-10 13:46:02 -08:00
Alessandro Boch 2e628cd947 Add local address autodetection on swarm init
- when advertise-addr is not local and listen-addr is
  not specified

Signed-off-by: Alessandro Boch <aboch@docker.com>
Upstream-commit: c8d0cb9e716585f33dc730911332adbbc458513a
Component: engine
2016-11-10 13:45:32 -08:00
Aaron Lehmann 5387bf18d8 Merge pull request #28251 from cyli/re-vendor-swarmkit
Vendor the latest swarmkit
Upstream-commit: 2161f35672047d1b621bb51f25850ba5d1405702
Component: engine
2016-11-10 13:28:31 -08:00
Michael Crosby ef501816c9 Merge pull request #27797 from vdemeester/stats-format-names-support
Add support for Names and ID in stats format
Upstream-commit: 801230ce315ef51425da53cc5712eb6063deee95
Component: engine
2016-11-10 13:26:00 -08:00
Victor Vieux 6f1d87061d Merge pull request #28043 from vieux/plugin_set_gogogo_continue
support mounts,devices and args for docker plugin set 
Upstream-commit: fa7c1a68a68ffb7c6851c59d2c0b41091b9d6e5e
Component: engine
2016-11-10 13:24:02 -08:00
Daniel Nephin d5ff009b23 Implement ipamconfig.subnet and be more explicit about restart policy always.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: dfd1227906a74acd51daed906802424299bda3bc
Component: engine
2016-11-10 16:22:31 -05:00
Michael Crosby 881cd023ce Merge pull request #27753 from tonistiigi/fix-overlay-unmount
Fix overlay unmount for the root case
Upstream-commit: 1883b73a573fff613f944bb83e24db14d839902c
Component: engine
2016-11-10 13:14:45 -08:00
Sebastiaan van Stijn 081f2ffa6c Merge pull request #28259 from sdurrheimer/zsh-completion-node-rm-swarm-leave-force
Add zsh completion for 'docker {node rm,swarm leave} -f'
Upstream-commit: b24a833f816ecd59fa733c94657efe56fd913777
Component: engine
2016-11-10 21:52:18 +01:00
Sebastiaan van Stijn b550de0a42 Merge pull request #28255 from sdurrheimer/zsh-completion-dockerd-seccomp-profile
Add zsh completion for 'docker daemon --seccomp-profile'
Upstream-commit: 93591faeb5bcf3e31ce65dfa58e825f72c6e5489
Component: engine
2016-11-10 21:51:29 +01:00
Sebastiaan van Stijn 6b9d29433b Merge pull request #28256 from sdurrheimer/zsh-completion-service-create-update-tty
Add zsh completion for 'docker service {create,update} --tty'
Upstream-commit: 8aa04807adcc26bd6dea26c9a1ce284c73d175b7
Component: engine
2016-11-10 21:50:29 +01:00
Sebastiaan van Stijn 1193760855 Merge pull request #28252 from sdurrheimer/zsh-completion-service-create-hostname
Add zsh completion for 'docker service create --hostname'
Upstream-commit: c51b16f0e4081d1270cfe28887f87a0d5a5a6859
Component: engine
2016-11-10 21:49:02 +01:00
John Howard 8afc09fa08 Windows: Dockerfile Win 10 client note
Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: f6ecfd620a48751124d3d1e590e9e83a437996ca
Component: engine
2016-11-10 12:45:56 -08:00
Steve Durrheimer 6ff10b10a9 Add zsh completion for 'docker {node rm,swarm leave} -f'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 04e7fca6203287fbf2790acb4886af46f188543e
Component: engine
2016-11-10 21:31:34 +01:00
Steve Durrheimer b67d7eab26 Add zsh completion for 'docker service {create,update} --tty'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: a34a41b20b9b5849ddd316b11935c6c2754fd253
Component: engine
2016-11-10 21:25:24 +01:00
Steve Durrheimer 6ecbb91f43 Add zsh completion for 'docker daemon --seccomp-profile'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 0f324a5b154baeafef730f62d779da14c54ef8db
Component: engine
2016-11-10 21:21:25 +01:00
Brian Goff 5c80e344d2 Merge pull request #28254 from sdurrheimer/zsh-completion-container-create-run-cpus
Add zsh completion for 'docker {run,create} --cpus'
Upstream-commit: a851cad25cd45b6d7f528210b6800ebb90d0866f
Component: engine
2016-11-10 15:16:19 -05:00
Victor Vieux 3ae73e8162 Merge pull request #28250 from sdurrheimer/zsh-completion-prune
Add zsh completion for new prune commands
Upstream-commit: 47dd8c7cc6fdcb158f5b6a8de230822942743076
Component: engine
2016-11-10 12:11:26 -08:00
Steve Durrheimer 84c24899c1 Add zsh completion for 'docker {run,create} --cpus'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 9b02c87f7bcb49396258e45c0487dce4a94661fc
Component: engine
2016-11-10 21:10:22 +01:00
Aaron Lehmann 9ee3779eb4 cli: Change autolock flag description
This change incorporates feedback from @thaJeztah in the PR that added
the autolock flag. It changes the descriptions to be different for
"swarm init" and "swarm update" so that the boolean nature so that the
purpose of the flag in both contexts is clearer.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 41b84e0994f9ec72990b7f0fc758f602f6241bc6
Component: engine
2016-11-10 12:05:19 -08:00
Santhosh Manohar 8c6719d015 vendor libnetwork @1861587
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
Upstream-commit: 90bc2756ed2693ff26f0517abbb060626d9a7284
Component: engine
2016-11-10 12:04:28 -08:00
Andrea Luzzardi e93ab8dcb4 cluster executor: Logs retrieving support.
Plumbed the executor to the container logs backend.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Upstream-commit: 0ec68657139f029e2740780a58e0019df0e42b6a
Component: engine
2016-11-10 12:02:47 -08:00
Steve Durrheimer 32e8919fe3 Add zsh completion for 'docker service create --hostname'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: ca654a417a27f72edc99e02d75d9602a9698f6e3
Component: engine
2016-11-10 21:00:17 +01:00
Victor Vieux 1bc2b60fd4 update swagger and docs
Signed-off-by: Victor Vieux <vieux@docker.com>
Upstream-commit: aef1dec9a6dbf1dcf4b43417c3c5fafda2ede957
Component: engine
2016-11-10 11:58:15 -08:00
Victor Vieux a5ddd33ae3 support mounts, devices and args for docker plugin set
Signed-off-by: Victor Vieux <vieux@docker.com>
Upstream-commit: fc7a2652588ed30e3b3a10ab72329e82f0440236
Component: engine
2016-11-10 11:55:48 -08:00
cyli e2a7e2f897 Vendor the latest swarmkit PR
Signed-off-by: cyli <cyli@twistedmatrix.com>
Upstream-commit: b399d29a57dad9c9fe14bf07431eb57a9ef0d2ac
Component: engine
2016-11-10 11:53:02 -08:00
Steve Durrheimer fb791c891a Add zsh completion for new prune commands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 712445607d5c5e03ea39bd9c6403104565a0d342
Component: engine
2016-11-10 20:51:44 +01:00
Sebastiaan van Stijn 64ff7ea1bd Merge pull request #28223 from bfirsh/update-swagger
Update swagger.yaml with recent API changes
Upstream-commit: a2937b201377f01ce5871de91b5943e0c369e5f8
Component: engine
2016-11-10 20:49:55 +01:00
cyli 3c13ce07e7 Fix an issue in the swarm unlock-key rotate test where we were never updating the
previous generation unlock key.

Signed-off-by: cyli <cyli@twistedmatrix.com>
Upstream-commit: 81f3e699c30fe412de0fa48dfa2885181f5d5002
Component: engine
2016-11-10 11:48:39 -08:00
Sebastiaan van Stijn 949cb1d2cb Add Fedora 25 RPMs
This is a temporary version for building
Fedora 25. Fedora 25 will be released during
code-freeze, and is currently in beta, so no
official images are available yet.

Current release date is scheduled for 2016-11-15
https://fedoraproject.org/wiki/Releases/25/Schedule

Once released, the image will be updated for
GA

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: c4f1cb779179b6145702174614706c462a5ceaae
Component: engine
2016-11-10 20:44:30 +01:00
Sebastiaan van Stijn 4e58c5cd9f Merge pull request #28182 from msabansal/overlayexternal
Swarm-mode overlay networking support for windows
Upstream-commit: 4705728b41db6f0951564e48d573f439a092bd63
Component: engine
2016-11-10 20:42:51 +01:00
Steve Durrheimer 3c72f5dda6 Add zsh completion for 'docker system' subcommands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 9df7cdcb2e6e169e0d41458bf86e02203a4fe0cd
Component: engine
2016-11-10 20:17:58 +01:00
Brian Goff 1689aa276d Fix uneccessary calls to volume.Unmount()
Fixes #22564

When an error occurs on mount, there should not be any call later to
unmount. This can throw off refcounting in the underlying driver
unexpectedly.

Consider these two cases:

```
$ docker run -v foo:/bar busybox true
```

```
$ docker run -v foo:/bar -w /foo busybox true
```

In the first case, if mounting `foo` fails, the volume driver will not
get a call to unmount (this is the incorrect behavior).

In the second case, the volume driver will not get a call to unmount
(correct behavior).

This occurs because in the first case, `/bar` does not exist in the
container, and as such there is no call to `volume.Mount()` during the
`create` phase. It will error out during the `start` phase.

In the second case `/bar` is created before dealing with the volume
because of the `-w`. Because of this, when the volume is being setup
docker will try to copy the image path contents in the volume, in which
case it will attempt to mount the volume and fail. This happens during
the `create` phase. This makes it so the container will not be created
(or at least fully created) and the user gets the error on `create`
instead of `start`. The error handling is different in these two phases.

Changed to only send `unmount` if the volume is mounted.

While investigating the cause of the reported issue I found some odd
behavior in unmount calls so I've cleaned those up a bit here as well.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: 9a2d0bc3adc0c21c82cd1974be45ea0449f9f224
Component: engine
2016-11-10 14:04:08 -05:00
Andrea Luzzardi a2106ea21e Merge pull request #28173 from nishanttotla/pin-images-by-digest
Pin images by digest
Upstream-commit: c13bf5ba51c4f6a1ba5e5c0da0d4f85d2d5b9116
Component: engine
2016-11-10 10:59:28 -08:00
allencloud e312e280e3 change node ls and service ls api and docs
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 48c3fcedfa95f7c12868b218bd831dac8e04864f
Component: engine
2016-11-11 02:51:19 +08:00
Yong Tang 6e2afbaf59 Add flag --host to service create and --host-add/--host-rm to service update
This fix tries to address 27902 by adding a flag `--host`
to `docker service create` and `--host-add/--host-rm` to
`docker service update`, so that it is possible to
specify extra `host:ip` settings in `/etc/hosts`.

This fix adds `Hosts` in swarmkit's `ContainerSpec` so that it
is possible to specify extra hosts during service creation.

Related docs has been updated.

An integration test has been added.

This fix fixes 27902.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: ea9a23ccdbd3a861e4cfa3441482b448fd1c17a5
Component: engine
2016-11-10 10:20:24 -08:00
Sebastiaan van Stijn cd96217228 Merge pull request #28243 from andrewhsu/change-context
use "golang.org/x/net/context" instead of "context"
Upstream-commit: 02918908af98d95652668f015275747907e78c68
Component: engine
2016-11-10 19:13:56 +01:00
Ben Firshman 88e56044f3 Update misc things in swagger.yaml
Changes to docs/reference/api/docker_remote_api_v1.25.md up to
and including 2d4203222574623b10d94817b9959a08698f516b

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Upstream-commit: 48af987afe15a6bc3528a45b36c79448abbc8836
Component: engine
2016-11-10 10:10:12 -08:00
Ben Firshman 496eea904f Add /plugins/{name}/set endpoint to swagger.yaml
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Upstream-commit: 54c37ecc23e008fa2a7c3c104f87f5e430bf9b29
Component: engine
2016-11-10 10:10:12 -08:00
Ben Firshman 53ab25ee19 Add prune endpoints to swagger.yaml
Introduced in #26108

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Upstream-commit: 50a5f3afafadf2b7cfbbf5b7dfba649683608a75
Component: engine
2016-11-10 10:07:25 -08:00
Sandeep Bansal cf52bc83b2 Vendoring latest swarmkit and libnetwork
Signed-off-by: Sandeep Bansal <msabansal@microsoft.com>
Upstream-commit: 6e951656792bb3cad17d579a628b333cebcad3e7
Component: engine
2016-11-10 09:54:47 -08:00
msabansal 7cfb8aa321 Swarm-mode overlay networking support for windows
Signed-off-by: msabansal <sabansal@microsoft.com>
Upstream-commit: ed8ccc304621289298fdb7aac4239cfe767b7bae
Component: engine
2016-11-10 09:54:40 -08:00
Tibor Vass 7b76246b62 Merge pull request #28148 from vieux/rename_plugin_manifest
rename plugin manifest
Upstream-commit: 89cc35447d96f6dbd5503d76883c33742076ca10
Component: engine
2016-11-10 09:47:15 -08:00
Daniel Nephin 4c746a53ae Handle bind options and volume options
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: ef90081d44f204727254c4ae5f0b4910a77530fd
Component: engine
2016-11-10 12:37:17 -05:00
Daniel Nephin 80cefc6683 Restore stack deploy integration test with dab
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: bd8de8d8be9e367af9e045d0fdead4462fed490c
Component: engine
2016-11-10 11:28:19 -05:00
Aanand Prasad f16c51a10e Reinstate --bundle-file argument to 'docker deploy'
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Upstream-commit: aa5e7d038a5459df55f5c039d4a881a4558aa247
Component: engine
2016-11-10 11:28:18 -05:00
Daniel Nephin 3a6b62c164 Add integration test for stack deploy.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: eefccc25c5cda96947978c503d5764aa48aacd7d
Component: engine
2016-11-10 11:28:18 -05:00
Daniel Nephin 2d56062821 Remove bundlefile
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: b45581b78610e9fe41b8fde19188868aac6df250
Component: engine
2016-11-10 11:28:18 -05:00
Daniel Nephin 184722486c Remove duplication of name mangling.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 46ca5827f99e627d7b63433497aee145c1d0468e
Component: engine
2016-11-10 11:28:18 -05:00