Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以,假设我有一组基于 image 的容器some-image。 some-image是基于ubuntu图像的。是否可以更新some-image,并让上述容器使用更新后的图像?
some-image
ubuntu
如果您的容器是使用 Dockerfiles 构建的,并且 Dockerfiles 使用FROM some-image,那么您可以使用 Dockerfiles 更新some-image、重建,并且生成的图像也将被更新。(这就是为什么 Docker 人员强烈鼓励人们使用 Dockerfiles :-))
FROM some-image