Docker Inspect
Predict Output Medium
Question
What does this command produce?
Code
docker inspect --format "{{.State.Status}}" mycontainer
Hint
The --format flag extracts a specific field.
Explanation
The docker inspect command returns detailed information about a container. The --format flag uses Go templates to extract specific fields. {{.State.Status}} extracts the container status, which is running in this case.
Related Resources
Related Lessons
- Docker Containers
Learn containers.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.