Interview Prep/Docker/Images, Layers & Storage Drivers

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
All Docker questions Roadmap: Docker & containers

More on Images, Layers & Storage Drivers