当前位置:   article > 正文

在ubuntu下使用docker desktop后,发现var/lib/docker目录没有了,镜像和容器都不见了,真的是无语_ubuntu 看不到docker的挂载目录

ubuntu 看不到docker的挂载目录

使用docker info查看,根目录就是var/lib/docker啊。在文件系统怎么都找不到镜像和容器。

后来不停的查资料,发现:https://docs.docker.com/desktop/faqs/linuxfaqs/z

Where does Docker Desktop store Linux containers?

Docker Desktop stores Linux containers and images in a single, large "disk image" file in the Linux filesystem. This is different from Docker on Linux, which usually stores containers and images in the /var/lib/docker directory on the host's filesystem.

好嘛,原来是这样

Where is the disk image file?

To locate the disk image file, select Settings from the Docker Dashboard then Advanced from the Resources tab.

The Advanced tab displays the location of the disk image. It also displays the maximum size of the disk image and the actual space the disk image is consuming. Note that other tools might display space usage of the file in terms of the maximum file size, and not the actual file size.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/58084
推荐阅读
相关标签
  

闽ICP备14008679号