Browse code

Merge pull request #29808 from jmzwcn/issue29796

API: Delete container can return 409, but that isn't documented.
(cherry picked from commit 86f962a4a81d9168fccb6a92299e88e560de49f1)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2017/01/02 22:41:03
Showing 1 changed files
... ...
@@ -4014,6 +4014,13 @@ paths:
4014 4014
           examples:
4015 4015
             application/json:
4016 4016
               message: "No such container: c2ada9df5af8"
4017
+        409:
4018
+          description: "conflict"
4019
+          schema:
4020
+            $ref: "#/definitions/ErrorResponse"
4021
+          examples:
4022
+            application/json:
4023
+              message: "You cannot remove a running container: c2ada9df5af8. Stop the container before attempting removal or use -f"
4017 4024
         500:
4018 4025
           description: "server error"
4019 4026
           schema: