where docker image is stored with docker-desktop for windows?

shelper picture shelper · Jun 15, 2020 · Viewed 11.1k times · Source

I installed docker-desktop for windows 10 from 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... docker resources

Any one has found the image in similar situation?

UPDATE the volumes are created in the folder: \\wsl$\docker-desktop-data\mnt\wsl\docker-desktop-data\version-pack-data\community\docker\volumes

Answer

Max picture Max · Aug 14, 2020

When using WSL integration, docker create two distros

  • docker-desktop
  • docker-desktop-data

You can access it by

\\wsl$\docker-desktop
\\wsl$\docker-desktop-data