Signed-off-by: allencloud <allen.sun@daocloud.io>
(cherry picked from commit 19654fd71ec5b9b075863f4623fdb80a955f5187)
Signed-off-by: Victor Vieux <vieux@docker.com>
| ... | ... |
@@ -7138,6 +7138,10 @@ paths: |
| 7138 | 7138 |
example: |
| 7139 | 7139 |
ID: "ak7w3gjqoa3kuz8xcpnyy0pvl" |
| 7140 | 7140 |
Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found" |
| 7141 |
+ 403: |
|
| 7142 |
+ description: "network is not eligible for services" |
|
| 7143 |
+ schema: |
|
| 7144 |
+ $ref: "#/definitions/ErrorResponse" |
|
| 7141 | 7145 |
409: |
| 7142 | 7146 |
description: "name conflicts with an existing service" |
| 7143 | 7147 |
schema: |
| ... | ... |
@@ -4563,6 +4563,11 @@ image](#create-an-image) section for more details. |
| 4563 | 4563 |
], |
| 4564 | 4564 |
"User": "33" |
| 4565 | 4565 |
}, |
| 4566 |
+ "Networks": [ |
|
| 4567 |
+ {
|
|
| 4568 |
+ "Target": "overlay1" |
|
| 4569 |
+ } |
|
| 4570 |
+ ], |
|
| 4566 | 4571 |
"LogDriver": {
|
| 4567 | 4572 |
"Name": "json-file", |
| 4568 | 4573 |
"Options": {
|
| ... | ... |
@@ -4620,6 +4625,7 @@ image](#create-an-image) section for more details. |
| 4620 | 4620 |
**Status codes**: |
| 4621 | 4621 |
|
| 4622 | 4622 |
- **201** – no error |
| 4623 |
+- **403** - network is not eligible for services |
|
| 4623 | 4624 |
- **406** – node is not part of a swarm |
| 4624 | 4625 |
- **409** – name conflicts with an existing object |
| 4625 | 4626 |
- **500** - server error |