Docker

Listing containers in Docker

DockerCLI: Containerspsbeginner

What this snippet does

Format strings turn the container list into exactly the columns you care about.

Expected output

NAMES   STATUS         PORTS
api     Up 3 minutes   0.0.0.0:3000->3000/tcp

Why practise typing this

Typing cli: containers code builds muscle memory for the symbols and indentation Docker uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.

More Docker practice

Browse all Docker snippets →