# Docker image path under WSL2

**URL:** <https://forums.docker.com/t/docker-image-path-under-wsl2/95323>\
**Category:** Docker Desktop\
**Tags:** windows\
**Created:** [June 11, 2020, 8:21am UTC](https://forums.docker.com/t/docker-image-path-under-wsl2/95323 "2020-06-11T08:21:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazydino](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/lazydino/32/27736_2.png) [@lazydino](https://forums.docker.com/u/lazydino)\
**Post date:** [June 11, 2020, 8:21am UTC](https://forums.docker.com/t/docker-image-path-under-wsl2/95323/1 "2020-06-11T08:21:19Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![asifsehzaad](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/asifsehzaad/32/51334_2.png) [@asifsehzaad](https://forums.docker.com/u/asifsehzaad)\
**Post date:** [June 18, 2020, 3:55am UTC](https://forums.docker.com/t/docker-image-path-under-wsl2/95323/2 "2020-06-18T03:55:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![datocrats](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/datocrats/32/27878_2.png) [@datocrats](https://forums.docker.com/u/datocrats)\
**Post date:** [June 29, 2020, 1:52pm UTC](https://forums.docker.com/t/docker-image-path-under-wsl2/95323/3 "2020-06-29T13:52:32Z")

</div>

Short answer: `C:\%LocalAppData%\Docker\wsl\data\ext4.vhdx` for where docker stores the images cache on windows running wsl2. A related problem I have is related in that the vhdx file has grown to over 250GB and thus due to the WSL2 default is full. I can’t use wsl -d docker-data to shell into the instance and reconfigure it to be able to grow above 250GB.

Here’s a [Useful summary on how to move the data volume](https://hyp.is/vNdt8rmDEeqEI0sCXA2gXw/dev.to/kimcuonthenet/move-docker-desktop-data-distro-out-of-system-drive-4cg2) with its links you should see more info.

For me `wsl -l` shows three instances my choice of distro and two that wsl2 docker installed:

```auto
Ubuntu-18.04 (Default)
docker-desktop
docker-desktop-data

```

I would like to be able to configure HD all within the GUI and to integrate with windows built-in diskpart or optimize-vhd commandlets.
