1
0
mirror of https://github.com/docker/cli.git synced 2025-08-18 18:22:03 +03:00
Files
cli/docs/reference/commandline
Sebastiaan van Stijn 676773a780 Fix incorrect aux-address examples and test
The (host)name for aux-addresses should
be unique, otherwise later values overwrite
earlier values.

Before this change, the example command
would send this API request;

    {
      "Attachable": false,
      "CheckDuplicate": true,
      "Driver": "overlay",
      "EnableIPv6": false,
      "IPAM": {
        "Config": [
          {
            "Gateway": "192.168.0.100",
            "IPRange": "192.168.1.0/24",
            "Subnet": "192.168.0.0/16"
          },
          {
            "AuxiliaryAddresses": {
              "a": "192.170.1.5",
              "b": "192.170.1.6"
            },
            "Gateway": "192.170.0.100",
            "Subnet": "192.170.0.0/16"
          }
        ],
        "Driver": "default",
        "Options": {
        }
      },
      "Internal": false,
      "Labels": {
      },
      "Name": "my-multihost-network",
      "Options": {
      }
    }

After this change, the request looks
like this (all aux-addresses preserved);

    {
      "Attachable": false,
      "CheckDuplicate": true,
      "Driver": "overlay",
      "EnableIPv6": false,
      "IPAM": {
        "Config": [
          {
            "AuxiliaryAddresses": {
              "my-router": "192.168.1.5",
              "my-switch": "192.168.1.6"
            },
            "Gateway": "192.168.0.100",
            "IPRange": "192.168.1.0/24",
            "Subnet": "192.168.0.0/16"
          },
          {
            "AuxiliaryAddresses": {
              "my-printer": "192.170.1.5",
              "my-nas": "192.170.1.6"
            },
            "Gateway": "192.170.0.100",
            "Subnet": "192.170.0.0/16"
          }
        ],
        "Driver": "default",
        "Options": {
        }
      },
      "Internal": false,
      "Labels": {
      },
      "Name": "my-multihost-network",
      "Options": {
      }
    }

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-06-02 00:10:12 +00:00
..
2017-06-02 00:10:11 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:10:10 +00:00
2017-06-02 00:10:02 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:06:58 +00:00
2017-06-02 00:10:10 +00:00
2017-06-02 00:10:09 +00:00
2017-06-02 00:10:11 +00:00
2017-06-02 00:10:12 +00:00
2017-06-02 00:10:09 +00:00
2017-06-02 00:10:03 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:10:08 +00:00
2017-06-02 00:10:10 +00:00
2017-06-02 00:10:11 +00:00
2017-06-02 00:10:08 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:10:10 +00:00
2017-06-02 00:10:09 +00:00
2017-06-02 00:10:07 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:10:11 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:10:10 +00:00
2017-06-02 00:10:11 +00:00
2017-06-02 00:10:11 +00:00
2017-06-02 00:10:11 +00:00
2017-06-02 00:10:11 +00:00
2017-06-02 00:10:11 +00:00
2017-06-02 00:10:11 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:07:49 +00:00
2017-06-02 00:10:10 +00:00
2017-06-02 00:10:07 +00:00