docker container inspect -f '{{.State.Status}}' myapp

Category: Docker

docker container inspect -f '{{.State.Status}}' myapp

Extract a specific field from container inspect using Go template

Uses a Go template to extract just one field from the inspect JSON. {{.State.Status}} gets the status.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.