sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
36.07k stars 1.78k forks source link

Clean Docker-OSX installation #631

Open marcoriesco opened 1 year ago

marcoriesco commented 1 year ago

Installed and ran perfect, used only for testing. Now I'm not finding the QEMU image, it's taking up too much space, where can I find it to remove?

DenisLevy76 commented 1 year ago

I want to know too. Did you manage to find the solution?

nnzv commented 1 year ago

Installed and ran perfect, used only for testing. Now I'm not finding the QEMU image, it's taking up too much space, where can I find it to remove?

  • I've already deleted the images and the docker container and it's still allocating a lot of space

That's an odd situation. For me, using docker rm -f was like magic, it worked perfectly. Consider running the below command to delete any unwanted docker junk:

% docker system prune -a
PTAHume commented 1 year ago

you can also use this command to optimise the vhdx file size with

Optimize-VHD -Path "C:\Users\YOURNAME\AppData\Local\Docker\wsl\data\ext4.vhdx" -Mode Full