एक Docker image एक read-only template है (dependencies के साथ पैक किया गया एक application); एक container एक image का running instance है। यह संबंध एक class और एक object जैसा है: एक image कई containers को जन्म दे सकती है।
image बनाम container
IMAGE → a read-only TEMPLATE: the app + dependencies + config, built in layers
(like a blueprint/class; stored, shared, versioned)
CONTAINER → a RUNNING INSTANCE of an image (with a writable layer on top)
(like an object created from a class; has runtime state)
One IMAGE → many CONTAINERS (run the same image multiple times)
