v1

latestOpenAPI 3.0.02026-07-1410578280.2 KB
Container

Wait for a container

Block until a container stops, then returns the exit code.

post/containers/{id}/wait

Path parameters

idstring required

ID or name of the container

Query parameters

conditionstring

Wait until a container state reaches the given condition, either 'not-running' (default), 'next-exit', or 'removed'.

Response

The container has exit.

StatusCodeinteger required

Exit code of the container