Skip to content

Detached and interactive mode: -d, -i and -t

Select an icon to see what it is.

Step 5 of 6

The terminal size is passed along

A full-screen program needs to know the terminal's rows and columns. The CLI sends POST /containers/{id}/resize with h and w, and again whenever you resize the window. dockerd applies the size to the container's pseudo-terminal.

POST /v1.45/containers/d6e7f8091a2b3c4dd6e7f8091a2b3c4dd6e7f8091a2b3c4dd6e7f8091a2b3c4d/resize?h=40&w=120

h: rows, w: columns