add CheckDuplicate docs and logics in network
Signed-off-by: allencloud <allen.sun@daocloud.io> Upstream-commit: 94b880f919937b3995a3424a284d1f6769e60f4b Component: engine
This commit is contained in:
@@ -2836,7 +2836,12 @@ Content-Type: application/json
|
||||
**JSON parameters**:
|
||||
|
||||
- **Name** - The new network's name. this is a mandatory field
|
||||
- **CheckDuplicate** - Requests daemon to check for networks with same name. Defaults to `false`
|
||||
- **CheckDuplicate** - Requests daemon to check for networks with same name. Defaults to `false`.
|
||||
Since Network is primarily keyed based on a random ID and not on the name,
|
||||
and network name is strictly a user-friendly alias to the network which is uniquely identified using ID,
|
||||
there is no guaranteed way to check for duplicates across a cluster of docker hosts.
|
||||
This parameter CheckDuplicate is there to provide a best effort checking of any networks
|
||||
which has the same name but it is not guaranteed to catch all name collisions.
|
||||
- **Driver** - Name of the network driver plugin to use. Defaults to `bridge` driver
|
||||
- **IPAM** - Optional custom IP scheme for the network
|
||||
- **Driver** - Name of the IPAM driver to use. Defaults to `default` driver
|
||||
|
||||
@@ -3165,7 +3165,12 @@ Content-Type: application/json
|
||||
**JSON parameters**:
|
||||
|
||||
- **Name** - The new network's name. this is a mandatory field
|
||||
- **CheckDuplicate** - Requests daemon to check for networks with same name. Defaults to `false`
|
||||
- **CheckDuplicate** - Requests daemon to check for networks with same name. Defaults to `false`.
|
||||
Since Network is primarily keyed based on a random ID and not on the name,
|
||||
and network name is strictly a user-friendly alias to the network
|
||||
which is uniquely identified using ID, there is no guaranteed way to check for duplicates.
|
||||
This parameter CheckDuplicate is there to provide a best effort checking of any networks
|
||||
which has the same name but it is not guaranteed to catch all name collisions.
|
||||
- **Driver** - Name of the network driver plugin to use. Defaults to `bridge` driver
|
||||
- **IPAM** - Optional custom IP scheme for the network
|
||||
- **Driver** - Name of the IPAM driver to use. Defaults to `default` driver
|
||||
|
||||
@@ -3279,7 +3279,12 @@ Content-Type: application/json
|
||||
**JSON parameters**:
|
||||
|
||||
- **Name** - The new network's name. this is a mandatory field
|
||||
- **CheckDuplicate** - Requests daemon to check for networks with same name. Defaults to `false`
|
||||
- **CheckDuplicate** - Requests daemon to check for networks with same name. Defaults to `false`.
|
||||
Since Network is primarily keyed based on a random ID and not on the name,
|
||||
and network name is strictly a user-friendly alias to the network
|
||||
which is uniquely identified using ID, there is no guaranteed way to check for duplicates.
|
||||
This parameter CheckDuplicate is there to provide a best effort checking of any networks
|
||||
which has the same name but it is not guaranteed to catch all name collisions.
|
||||
- **Driver** - Name of the network driver plugin to use. Defaults to `bridge` driver
|
||||
- **Internal** - Restrict external access to the network
|
||||
- **IPAM** - Optional custom IP scheme for the network
|
||||
|
||||
@@ -3344,7 +3344,12 @@ Content-Type: application/json
|
||||
**JSON parameters**:
|
||||
|
||||
- **Name** - The new network's name. this is a mandatory field
|
||||
- **CheckDuplicate** - Requests daemon to check for networks with same name. Defaults to `false`
|
||||
- **CheckDuplicate** - Requests daemon to check for networks with same name. Defaults to `false`.
|
||||
Since Network is primarily keyed based on a random ID and not on the name,
|
||||
and network name is strictly a user-friendly alias to the network
|
||||
which is uniquely identified using ID, there is no guaranteed way to check for duplicates.
|
||||
This parameter CheckDuplicate is there to provide a best effort checking of any networks
|
||||
which has the same name but it is not guaranteed to catch all name collisions.
|
||||
- **Driver** - Name of the network driver plugin to use. Defaults to `bridge` driver
|
||||
- **Internal** - Restrict external access to the network
|
||||
- **IPAM** - Optional custom IP scheme for the network
|
||||
|
||||
Reference in New Issue
Block a user