Ver código fonte

Merge pull request #29808 from jmzwcn/issue29796

API: Delete container can return 409, but that isn't documented.
Sebastiaan van Stijn 8 anos atrás
pai
commit
86f962a4a8
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      api/swagger.yaml

+ 7 - 0
api/swagger.yaml

@@ -4045,6 +4045,13 @@ paths:
           examples:
             application/json:
               message: "No such container: c2ada9df5af8"
+        409:
+          description: "conflict"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
+          examples:
+            application/json:
+              message: "You cannot remove a running container: c2ada9df5af8. Stop the container before attempting removal or use -f"
         500:
           description: "server error"
           schema: