Docker image 是一个只读的 template(包含应用程序及其依赖项的打包版本);container 是一个 image 的 running instance。这个关系就像类和对象的关系:一个 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)
