Docker-OSX icon indicating copy to clipboard operation
Docker-OSX copied to clipboard

ERRO[0094] error waiting for container:

Open freshlesh3 opened this issue 2 years ago • 5 comments

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.

freshlesh3 avatar Jul 10 '23 23:07 freshlesh3

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

vitoras avatar Oct 28 '23 18:10 vitoras

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

net stop winnat net start winnat

smshafa avatar Nov 22 '23 17:11 smshafa

This worked for me, thanks!

eabugda avatar Nov 25 '23 18:11 eabugda

Works for me too

jostickquielciat avatar Apr 28 '24 20:04 jostickquielciat