https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
s

strong-scientist-17505

12/15/2022, 2:01 PM
Hello, Just switched from docker desktop to rancher desktop. I am using
dockerd
on macOS 12.6. I am trying to expose port 53 in the container as 5300 on the host. The docker-compose contains this:
Copy code
ports:
      - 192.168.0.18:5300:53/udp
I receive the error message:
Copy code
Error starting userland proxy: listen udp4 192.168.0.18:5300: bind: cannot assign requested address
If I expose 80 as 8080 for nginx, via
docker run --name some-nginx -d -p 8080:80 nginx
, however, then I can access 192.168.0.18:8080 without a problem.
g

gifted-wall-83531

12/15/2022, 2:09 PM
Just use docker image, but don't use docker run.
use kubectl
s

strong-scientist-17505

12/15/2022, 2:11 PM
I'm not using kubernetes, I just want to run two containers from a docker-compose stack
w

wide-mechanic-33041

12/15/2022, 2:12 PM
wondering if it might be a udp thing. if you go tcp does it work?
s

strong-scientist-17505

12/15/2022, 2:13 PM
Yeah, a DNS query over TCP on port 5300 from the host works
(if I change the port forward to 53/tcp)
w

wide-mechanic-33041

12/15/2022, 2:14 PM
may be a limitation of the forwarding into the VM because its connectionless
s

strong-scientist-17505

12/15/2022, 2:15 PM
ah yes, couldn't find that earlier
thanks for your help
I've 👍 'd the issue
w

wide-mechanic-33041

12/15/2022, 2:16 PM
won’t be as performant, but most named will support tcp. it is a bit of a change for the consumers though so it may not be a workable option
s

strong-scientist-17505

12/15/2022, 2:17 PM
it does, and luckily I am only putting a few thousand queries per second through it - I'll probably have to switch to docker engine on a separate box or back to docker desktop, I guess!
👍 1
493 Views