Docker Community Forums

Share and learn in the Docker community.

Docker image path under WSL2

I am running Docker Desktop for Windows 2.3.0.3(45519) with ‘Use the WSL 2 engine’ and ‘Enable integration with my default WSL distro’ boxes checked.I run Windows 10 Pro version 2004 with a smaller SSD C drive for boot, and the integrated Ubuntu 20.04 instance has been exported to a larger D drive. Is the docker container images downloaded resided in the vhdx file in D drive or somewhere in the smaller C drive? I understand that docker image data are stored at a windows UNC path \wsl$\docker-desktop-data or /mnt/wsl/docker-desktop-data from bash, but what are the locations of those path? Is there a way to tell that my docker actually store data on my larger D drive?

I am all ears to this… if someone can explain or give more clarity into this.