Skip to content

A container's life: create, start, pause, stop, remove

Select an icon to see what it is.

Step 1 of 6

create: the container exists, nothing runs

docker create sends POST /containers/create. dockerd writes the config and a writable layer, and the container gets State.Status created. There is no process and no PID.

$ docker create --name web nginx
PrevNext

POST /v1.45/containers/create?name=web

{
"Image": "nginx"
}