Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< Content-Type: application/json
< Date: Thu, 14 May 2020 04:53:22 GMT
< Content-Length: 259
<
{"cause":"container state improper","message":"cannot remove container 82333b0c15a2fe3f70d79d5c44aa9638e46cdb5f25a92f8af23693e2d8e3de3c as it is running - running or paused containers cannot be removed without force: container state improper","response":500}
Connection #0 to host localhost left intact
Describe the results you expected:
The running container should be removed just as podman rm -f does. Is the curl command correct when I want to use API v2 DELETE method with the payload?
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
[root@Fedora31 ~]# podman version
Version: 1.9.1
RemoteAPI Version: 1
Go Version: go1.13.9
Built: Mon May 11 06:37:25 2020
OS/Arch: linux/amd64
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description Force delete a running container by API v2 following the doc seems not to work.
Steps to reproduce the issue:
setup the API v2 service.
podman run --name testctn -d alpine sleep 1000
curl -v -X DELETE -H 'Content-type:application/json' -d '{"force":true}' http://localhost:8081/v1.40/libpod/containers/testctn
Describe the results you received: [root@Fedora31 ~]# curl -v -X DELETE -H 'Content-type:application/json' -d '{"force":true}' http://localhost:8081/v1.40/libpod/containers/testctn
Describe the results you expected: The running container should be removed just as
podman rm -f
does. Is the curl command correct when I want to use API v2 DELETE method with the payload?Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.): KVM vm