Docker

Stop a running Docker container.

Args: container_name: Name of the container to stop docker_service: Docker service dependency

Returns: {"success": true, "message": ...} once the container is stopped

Raises: HTTPException: 404 if no container by that name exists HTTPException: 502 if the Docker daemon refused or could not be reached

post/docker/stop-container/{container_name}

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/docker/stop-container/{container_name}
  • Auth
    HTTP basic

Path parameters

container_namestring required

Response

Successful Response

unknown required

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      the response's body type changed from object to no type for status