Docker 自动删除拉取的镜像
我有以下 docker 版本:
~> docker --version
Docker version 20.10.12, build e91ed57
docker 会自动删除未使用的映像,这会导致每次启动 docker 映像时都会进行不必要的映像拉取,是否有任何可以调整的 Docker 设置?为什么会发生这种情况?
I have the following docker version:
~> docker --version
Docker version 20.10.12, build e91ed57
The docker is automatically removing the unused images, this is leading to unnecessary image pull every time I am starting the docker image, is there any Docker settings that I can tweak? Why this is happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对此非常严重,以至于在 30 秒到 3 分钟后,第二个
ls
将为空:我相信我通过将资源 - 虚拟磁盘限制从 64 GB 增加到 96 GB 修复了 Docker Desktop 中的这个问题,或者也许只需重新启动几次即可。
I had this so seriously that after 30 seconds to 3 minutes, the second
ls
would be empty:I believe I fixed this in Docker Desktop by increasing Resources - Virtual Disk limit from 64 GB to 96 GB, or maybe just by rebooting several times.