Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Map TCP port to host ip is not working #3464
docker run --rm -p 10.3.110.22:80:80 --name webserver nginx
docker: Error response from daemon: driver failed programming external connectivity on endpoint webserver (7de1a6d6305b474703563beb686256df8c36bcdd87b66f43483b57fd44cebd2c): Error starting userland proxy: Bind for 10.3.110.22:80: unexpected error Bad file descriptor.
Docker version 18.09.1, build 4c52b90
Steps to reproduce the behavior
Same happens for me docker version 18.09.1 (docker for mac 220.127.116.11). OSX version 10.14.2.
Hey @FreddieLindsey. I'm using docker compose so I gave sudo docker-compose up a go but still the same errors for host port binding < 1024.
ERROR: for varnish Cannot start service varnish: driver failed programming external connectivity on endpoint varnish (ea9c12e3d77fcbbfd226f0d856129b4731bb91b30afe03da755b9ee0eac3c6ba): Error starting userland proxy: Bind for 127.0.0.2:80: unexpected error Bad file descriptor
On previous versions sudo wasn't a requirement to initiate port binding in this way.
With `sudo`, U’d just assign superuser-rights to a client. One part/service of the docker-service(s) must have the super-rights.…
Am 15.01.2019 um 16:00 schrieb Freddie Lindsey ***@***.***>: You need superuser to bind to ports < 1024. If you try this with sudo does it work? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#3464 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHlMGig81l5iB9Muln4cDYBP88jm7dLtks5vDe0TgaJpZM4Z_Wxg>.
same here. can not run dnsmasq in docker after latest update on edge. switched to stable and same setup
works as before the update on edge. The nginx is reachable in both scenarios, though. So in my case it is limited to UDP.
referenced this issue
Jan 22, 2019
Issues go stale after 90d of inactivity.
Prevent issues from auto-closing with an
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.