Skip to content

Instantly share code, notes, and snippets.

@evilz
Created January 20, 2022 21:24
Show Gist options
  • Save evilz/0b24e3800e84609c316b0147d7411693 to your computer and use it in GitHub Desktop.
Save evilz/0b24e3800e84609c316b0147d7411693 to your computer and use it in GitHub Desktop.
Docker-OSX-WSL2G
docker run -it \
--device /dev/kvm \
-p 50922:10022 \
-e "DISPLAY=${DISPLAY:-:0}" \
-v /mnt/wslg/.X11-unix:/tmp/.X11-unix \
-e GENERATE_UNIQUE=true \
-e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket \
-v "/run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket" \
-e RAM=8 \
-v "/mnt/c:/mnt/c" \
-e EXTRA="-virtfs local,path=/mnt/c,mount_tag=c,security_model=passthrough,id=c" \
sickcodes/docker-osx:auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment