1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types/swarm
Yong Tang ea9a23ccdb 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>
2016-11-10 10:20:24 -08:00
..
common.go add swarm type comments and fix nits 2016-09-26 17:17:52 +08:00
container.go Add flag --host to service create and --host-add/--host-rm to service update 2016-11-10 10:20:24 -08:00
network.go
node.go added node ip autodetection 2016-11-03 08:10:14 -07:00
secret.go more review updates 2016-11-09 14:27:45 -05:00
service.go Service update failure thresholds and rollback 2016-10-18 10:09:50 -07:00
swarm.go Revise swarm init/update flags, add unlocking capability 2016-11-09 16:09:00 -08:00
task.go Add force option to service update 2016-10-21 17:43:27 -07:00