Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 550
shelper Avatar asked Jun 15 '20 01:06

shelper


2 Answers

As per this answer, the Docker VM is stored in the file %USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx.

This might not be what you're looking for, but I found this thread when looking for the linked one, so this answer might help some other people.

like image 152
The Bic Pen Avatar answered Oct 22 '22 11:10

The Bic Pen


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 
like image 33
Max Avatar answered Oct 22 '22 09:10

Max