codegurukool.com · Free coding tutorials & online compiler

Home › Docker Tutorial › Inspect containers

Inspect containers

Read every detail of an object.

docker inspect prints a container or image as JSON. Use --format with a Go template to pull out one value. Related tools: docker stats (live CPU and memory) and docker top (processes).

Example code

docker inspect --format '{{.State.Status}}' web

Run this code in the online editor

← Docker Hub: tag and pushResource limits →