What is `docker image inspect` useful for?
BeginnerConceptImages, Layers & Storage Drivers
Answer
It shows the image config: Config.Env, Cmd, Entrypoint, ExposedPorts, User, WorkingDir, Labels, architecture, OS, size and layers. Use -f with Go templates.
docker image inspect -f '{{.Config.User}} {{.Config.Entrypoint}} {{.Config.Cmd}}' app:1.0
More on Images, Layers & Storage Drivers
What is a Docker image made of?BeginnerWhat is a layer and when is one created?BeginnerWhat is a union filesystem / OverlayFS?IntermediateWhat is copy-on-write (CoW) in containers?IntermediateWhy does deleting a file in a later `RUN` not shrink the image?IntermediateWhat storage drivers does Docker support and which is default?Intermediate