Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with port binding #1140

Open
1 of 5 tasks
julian-ladjani opened this issue Sep 19, 2024 · 2 comments
Open
1 of 5 tasks

Problem with port binding #1140

julian-ladjani opened this issue Sep 19, 2024 · 2 comments

Comments

@julian-ladjani
Copy link

Description

Hello,
I use colima since yesterday, I have a dns container working perfectly with docker, since I use colima, Ihave this problem:
docker: Error response from daemon: driver failed programming external connectivity on endpoint nice_bell (b688f5012ab945b7d85e4f85a1ead26960501561deb75c417db4333e27b85db7): failed to bind port 0.0.0.0:53/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use.
(same with udp),
When I use 54 port (for exemple), it work fine.
Maybe it's a permissions problem or something like that?

Version

colima version 0.7.5
git commit: 1588c06

runtime: docker
arch: aarch64
client: v27.2.1
server: v27.1.1
limactl version 0.23.2
qemu-img version 9.1.0

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/julian/.colima/default/docker.sock

Reproduction Steps

  1. docker run -p 53:53 -it --rm alpine ash

Expected behaviour

same as docker run -p 54:54 -it --rm alpine ash

Additional context

No response

@julian-ladjani julian-ladjani changed the title Colima port cannot be bind Problem with port binding Sep 19, 2024
@abiosoft
Copy link
Owner

It simply means something is already using port 53.

You can check the program using it by running the following command.

lsof -nP -iTCP:53 | grep LISTEN

@julian-ladjani
Copy link
Author

julian-ladjani commented Sep 22, 2024

I tested with netcat before in addition to lsof (by listening to port 53 directly).
Since we did not find a solution, we installed a dnsmasq and it works perfectly but not with docker-compose with colima (works with docker desktop).

I tried with two macs, it gives the same result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants