Docker کی image ایک read-only template ہے (ایک packaged application اس کے dependencies کے ساتھ)؛ ایک 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)
