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.13k stars 1.78k forks source link

How to run the Docker-OSX in Windows? #535

Open ZedZipDev opened 1 year ago

ZedZipDev commented 1 year ago

I run the cmd and receive the error:

>PS D:\_Docker> docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:latest
docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.

Is it possible to run it in Windows?

Hawam commented 1 year ago

use wsl this system runs on Linux so u can use wsl to have Linux subsystem run with windows and run mac on top of it . just don't expect it to run smoothly

ZedZipDev commented 1 year ago

Ok, thank you. How can I use WSL in Windows for running this docker?

AlwynYin commented 1 year ago

You could probably check out this link basically docker for windows has two versions, one using hyperv and one using wsl backend