赞
踩
使用docker info查看,根目录就是var/lib/docker啊。在文件系统怎么都找不到镜像和容器。
后来不停的查资料,发现:https://docs.docker.com/desktop/faqs/linuxfaqs/z
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.
好嘛,原来是这样
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.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。