1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command/service
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
..
cmd.go always add but hide experimental cmds and flags 2016-11-08 04:55:27 -08:00
create.go Add flag --host to service create and --host-add/--host-rm to service update 2016-11-10 10:20:24 -08:00
inspect.go Fix typs from go to Go 2016-10-18 19:40:16 +08:00
inspect_test.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
list.go support show numbers of global service in service ls command 2016-11-08 16:17:15 +08:00
opts.go Add flag --host to service create and --host-add/--host-rm to service update 2016-11-10 10:20:24 -08:00
opts_test.go more review updates 2016-11-09 14:27:45 -05:00
parse.go SecretRequestOptions -> SecretRequestOption 2016-11-09 14:27:45 -05:00
ps.go Add -a option to service/node ps 2016-11-06 07:40:39 -05:00
remove.go
scale.go add replicated in service scale command description 2016-11-02 16:15:57 +08:00
update.go Add flag --host to service create and --host-add/--host-rm to service update 2016-11-10 10:20:24 -08:00
update_test.go Add flag --host to service create and --host-add/--host-rm to service update 2016-11-10 10:20:24 -08:00