Docker ఇమేజ్ ఒక read-only టెంప్లేట్ (దాని డిపెండెన్సీలతో సహా ప్యాకేజ్ చేయబడిన అప్లికేషన్); ఒక కంటైనర్ ఒక ఇమేజ్ యొక్క రన్నింగ్ ఇన్స్టెన్స్. సంబంధం class మరియు object లాంటిది: ఒక ఇమేజ్ చాలా కంటైనర్లను సృష్టించగలదు.
ఇమేజ్ vs కంటైనర్
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)
