DockerCLI/cli/command/network
Sebastiaan van Stijn 5bc09639cc
Refactor network parsing, add preliminary support for multiple networks
This refactors the way networking options are parsed, and makes the
client able to pass options for multiple networks. Currently, the
daemon does not yet accept multiple networks when creating a container,
and will produce an error.

For backward-compatibility, the following global networking-related
options are associated with the first network (in case multiple
networks are set);

  - `--ip`
  - `--ip6`
  - `--link`
  - `--link-local-ip`
  - `--network-alias`

Not all of these options are supported yet in the advanced notation,
but for options that are supported, setting both the per-network option
and the global option will produce a "conflicting options" error.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-04-03 16:42:57 +02:00
..
testdata use sortorder lib for sorting network list output 2018-08-08 12:06:59 -04:00
client_test.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
cmd.go Hide "builder" and "network" commands on old API versions 2019-01-30 01:06:09 +01:00
connect.go Refactor network parsing, add preliminary support for multiple networks 2019-04-03 16:42:57 +02:00
connect_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
create.go Fix labels copying value from environment variables 2019-03-19 03:01:57 +01:00
create_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
disconnect.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
disconnect_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
formatter.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
formatter_test.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
inspect.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
list.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
list_test.go refactor network list unit tests to table-driven style 2018-08-02 14:07:06 -04:00
prune.go build: add options to builder prune 2018-09-05 00:01:16 +00:00
remove.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00