Can't extract container img file using Docker on WSL2 #336

Closed
opened 2025-12-29 00:24:45 +01:00 by adam · 1 comment
Owner

Originally created by @cbini on GitHub (Mar 13, 2022).

Hi! Just started using this this weekend, and it's going well. I'd like to extract the image in the container that I've built, but the suggested command doesn't work:

sudo find /var/lib/docker -size +10G | grep mac_hdd_ng.img
find: ‘/var/lib/docker’: No such file or directory

I imagine this has something to do with running Docker in WSL2. Has anyone figured this out?

Originally created by @cbini on GitHub (Mar 13, 2022). Hi! Just started using this this weekend, and it's going well. I'd like to extract the image in the container that I've built, but the suggested command doesn't work: ``` sudo find /var/lib/docker -size +10G | grep mac_hdd_ng.img find: ‘/var/lib/docker’: No such file or directory ``` I imagine this has something to do with running Docker in WSL2. Has anyone figured this out?
adam closed this issue 2025-12-29 00:24:45 +01:00
Author
Owner

@rogeriorc commented on GitHub (Mar 21, 2022):

I think its located on:

\\wsl$\docker-desktop-data\version-pack-data\community\docker\overlay2

@rogeriorc commented on GitHub (Mar 21, 2022): I think its located on: `\\wsl$\docker-desktop-data\version-pack-data\community\docker\overlay2`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#336