An analogy we can use here is that of homes and apartments.
Virtual Machines are like homes: stand-alone buildings with their own infrastructure including plumbing and heating, as well as a kitchen, bathrooms, and so on.
Docker containers are like apartments: they share common infrastructures like plumbing and heating, but come in various sizes that match the exact needs of an owner.
我们可以在这里使用的一个类比是房屋和公寓。
虚拟机就像家:独立的建筑物,拥有自己的基础设施,包括管道和暖气,以及厨房、浴室等。
Docker 容器就像公寓:它们共享公共基础设施,如管道和供暖系统,但有各种尺寸,以满足业主的确切需求。
analogy: /əˈnaləjē/ [Noun] 比喻;类比
infrastructure: /ˈinfrəˌstrək(t)SHər/ 基础设施
plumbing: /ˈpləmiNG/ 管道
various: /ˈverēəs/ 各种各样的