1.return status code http.StatusNoContent in deleting network when successful
2.modify docker_api_network_test.go 3.modify docker_remote_api_v1.23.md Signed-off-by: allencloud <allen.sun@daocloud.io> Upstream-commit: 94c929099fdfd200eda90529ae8d2ed90c8e3c97 Component: engine
This commit is contained in:
@ -3097,7 +3097,7 @@ JSON Parameters:
|
||||
|
||||
`POST /networks/(id)/connect`
|
||||
|
||||
Connects a container to a network
|
||||
Connect a container to a network
|
||||
|
||||
**Example request**:
|
||||
|
||||
@ -3134,7 +3134,7 @@ JSON Parameters:
|
||||
|
||||
`POST /networks/(id)/disconnect`
|
||||
|
||||
Disconnects a container from a network
|
||||
Disconnect a container from a network
|
||||
|
||||
**Example request**:
|
||||
|
||||
@ -3175,11 +3175,11 @@ Instruct the driver to remove the network (`id`).
|
||||
|
||||
**Example response**:
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
HTTP/1.1 204 No Content
|
||||
|
||||
Status Codes
|
||||
|
||||
- **200** - no error
|
||||
- **204** - no error
|
||||
- **404** - no such network
|
||||
- **500** - server error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user