Closed Edward5hen closed 4 years ago
The similar issue is found to stop a container - http://docs.podman.io/en/latest/_static/api.html#operation/stopContainer, query parameter "t" does not work either.
@baude PTAL
I'm closing this. I mistook the query parameters as payloads. The cURL command curl -v -X POST http://localhost:8081/v1.40/libpod/containers/testctn/restart?t=30
works fine.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
query parameter "t" seems not to work. I'm testing this following the doc - http://docs.podman.io/en/latest/_static/api.html#operation/libpodRestartContainer. No matter which value I set in the data field
-d '{"t":$int}'
, it would take the default timeout 10s to restart the container.Steps to reproduce the issue:
Set up the APIv2 service
podman run -d --name testctn docker.io/library/alpine sleep 1000
curl -v -X POST -H 'Content-type:application/json' -d '{"t":300}' http://localhost:8081/v1.40/libpod/containers/testctn/restart
Describe the results you received: restart the container with default timeout 10s
Describe the results you expected: restart the container with the timeout I set 300s
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
: