Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to locate docker drive location on WSL2

Writer Matthew Harrington

When I go to: \\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes I can see my volumes.

But I want to see them from the Linux side, so I go to: /mnt/wsl/docker-desktop-data/version-pack-data it is empty.

Even as root.

How can I access my volume files from Linux?
Thanks

2

1 Answer

Under Docker Desktop for Windows, with WSL2 integration, two special "instances" are created, which you can see with:

> wsl -l -v NAME STATE VERSION
* Ubuntu Running 2 docker-desktop Stopped 2 docker-desktop-data Stopped 2

Local docker volumes (as well as images and other data) are kept in docker-desktop-data, probably to provide common access across any installed WSL2 instance (for which Docker integration has been enabled), as well as PowerShell.

Please see this question and my answer there for information on how to inspect that data.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy