Needed for docker/docker#24823.
This changes datastructures in accordance with the upstream swarmkit
changes. It also adds flags to SwarmUpdate to allow token rotation.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This makes the engine-api changes to support
https://github.com/docker/docker/pull/24237.
AdvertiseAddr is added to InitRequest and JoinRequest so a node can
specify a different address to advertise than the one it binds to. This
allows scenarios with NAT to be supported, and also allows binding to a
wildcard address.
NodeAddr in Info allows Docker to expose a node's address.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
In general, we'd like to avoid pollute the top-level space of the
cluster configuration with specific items. This parameterizes task
creation using a `TaskDefaults` subsection. It is arguable that this is
part of the orchestrator, but it is possible to allow task creation
outside of the orchestrator in the future.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This fix tries to address the issue raised in
https://github.com/docker/docker/issues/23367
where an out-of-band volume driver deletion leaves some data in docker.
This prevent the reuse of deleted volume names (by out-of-band volume driver
like flocker).
This fix adds a `--force` field in `docker volume rm` to forcefully purge
the data of the volume that has already been deleted.
This fix is related to pull request in docker:
https://github.com/docker/docker/pull/23436
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
The reason for this is that docker already default for unix docker in darwin too.
Also now that we have Docker for Mac, we can talk to the daemon using a unix socket.
So it seems like it makes a lot more sense that unix docker is the default.
Signed-off-by: Jonathan Leibiusky <ionathan@gmail.com>
Adds the requisite fields for configuring log drivers on services. Log
drivers are propagated at the task-level, allowing a default to be
configured per cluster. If none are set, the engine default is used.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
In general, the Docker API client should avoid exposing HTTP details in
client, as it elides type safety and makes discovery of inputs to a
method more challenging. These have been removed and replaced with an
options type.
We may want to consider arbitrary header transmission through context,
but that is a bigger change.
Proper build tags have been added to experimental features that were
failing during non-tagged build.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
To ensure that the zero-value reflects the defaults for mounts, change
the `Writable` to `ReadOnly`. Adds a breaking api change to address a
point of confusion.
If this PR is not merged by the 1.12 release, this can never be merged,
so just close and move on.
Related to docker/docker#24053.
Signed-off-by: Stephen J Day <stephen.day@docker.com>