Score:1

How to locate docker drive location on WSL2

in flag

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

Kevin M. Mansour avatar
cn flag
The volumes in `/mnt/wsl/docker-desktop-data/data/docker/volumes`. make sure to enter as Root.
in flag
Thanks, but `ls -la /mnt/wsl/docker-desktop-data/data/` is empty...
Score:0
vn flag

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.

in flag
I want to view it via ubuntu, so I go to: `/mnt/wsl/docker-desktop-data/version-pack-data` and it is empty. thankls
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.