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

ERRO[0094] error waiting for container: #677

Open freshlesh3 opened 12 months ago

freshlesh3 commented 12 months ago

I run this command:

docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ sickcodes/docker-osx:monterey

The image is pulled and then I get this error: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:50922 -> 0.0.0.0:0: listen tcp 0.0.0.0:50922: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

I am using windows 11. I have tried using other ports, running docker with sudo. I've reinstalled Docker, and tried resetting to factory to reset my network configuration but nothing seems to work.

vitoras commented 8 months ago

Hi, have you found a solution? I'm facing the same issue.

smshafa commented 7 months ago

First of all, quit your Docker Desktop, and then Run CMD or PowerShell as administrator:

net stop winnat net start winnat

eabugda commented 7 months ago

This worked for me, thanks!

JostickQuielCiat commented 2 months ago

Works for me too