1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/client/service
Yong Tang b487497cd2 Idempotent service update --publish-add
This fix tries to address the issue raised in 25375 where
`service update --publish-add` returns an error if the exact
same value is repeated (idempotent).

This fix use a map to filter out repeated port configs so
that `--publish-add` does not error out.

An integration test has been added.

This fix fixes 25375.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-08-10 18:03:43 -07:00
..
cmd.go cli: docker service|node|stack ps instead of tasks 2016-07-27 11:06:42 -07:00
create.go Add container labels to service create/update 2016-07-25 18:57:02 -07:00
inspect.go cli: service inspect - Null check for UpdateConfig 2016-08-05 22:42:14 +01:00
inspect_test.go cli: service inspect - Null check for UpdateConfig 2016-08-05 22:42:14 +01:00
list.go service ls: Show tasks from nodes that are not down, not only "ready" nodes 2016-07-28 11:44:28 -07:00
opts.go Update docs in docker service create/update for flag --user 2016-08-02 07:01:16 -07:00
opts_test.go Remove extraneous mount aliases. 2016-07-27 15:05:31 -04:00
ps.go cli: docker service|node|stack ps instead of tasks 2016-07-27 11:06:42 -07:00
remove.go update command description in CLI 2016-07-31 00:06:18 +08:00
scale.go re-vendor engine-api 2016-07-06 21:14:14 -04:00
update.go Idempotent service update --publish-add 2016-08-10 18:03:43 -07:00
update_test.go Idempotent service update --publish-add 2016-08-10 18:03:43 -07:00