I installed docker-desktop for windows 10 from https://www.docker.com/products/docker-desktop https://www.docker.com/products/docker-desktop, and I enabled the docker daemon for Linux container.
I have my own wsl2 distro called ubuntu, and I enabled the docker-desktop integration with distro ubuntu, and built an image in it.
But I cannot figure out where the image is saved.
I did some search and found people saying it is in \\wsl$\docker-desktop-data\mnt\wsl\docker-desktop-data\data\docker
. I did find this folder, but the whole folder is only a few hundred MB, and my image is several GB. I only find metadata in the folder but not the real image.
Someone point out that I can find path to image in docker resources configuration tab, but mine does not show where the docker image is...
有人找到过类似情况的图片吗?
UPDATE这些卷是在文件夹中创建的:\\wsl$\docker-desktop-data\mnt\wsl\docker-desktop-data\version-pack-data\community\docker\volumes
Docker VM存储在该文件中%USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx
.
这可能不是您要找的内容,但我在寻找链接的时候发现了这个线程,所以这个答案可能会帮助其他一些人。
更多信息 https://stackoverflow.com/questions/62441307/how-can-i-change-the-location-of-docker-images-when-using-wsl2-with-windows-10-h
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)