SoftwareTestPilot
All discussions
Priya GopalJun 29

Docker: what is the difference between an image and a container?

Interview question I have failed twice.

dockerbasics
Related learningExplore Academy skill paths

1 answer

Accepted solution

Priya GopalJun 30

Image = read-only template (built from a Dockerfile, layered filesystem, no running processes). Container = a running instance of an image (writable layer on top + its own PID/network namespace). One image, many containers. Class vs object is the closest analogy.