curl --request POST \
--url http://localhost:8000/docker/stop-container/{container_name} \
--header 'Authorization: Basic <encoded-value>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Stop a running Docker container.
Args: container_name: Name of the container to stop docker_service: Docker service dependency
Returns: Response from container stop operation
curl --request POST \
--url http://localhost:8000/docker/stop-container/{container_name} \
--header 'Authorization: Basic <encoded-value>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Was this page helpful?