From c0cf14a73c38bf573803be8bc50af95a411732ba Mon Sep 17 00:00:00 2001 From: Daniel Zhang Date: Sun, 1 Jan 2017 12:20:21 +0800 Subject: [PATCH] API: Delete container can return 409, but that isn't documented. #29796 Signed-off-by: Daniel Zhang --- api/swagger.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index fa188f9c6b..161d4ae58e 100644 --- a/api/swagger.yaml +++ b/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: