Skip to content

M1 Mac address already in use port 53 by mDnsResponder #5335

@dmnlk

Description

@dmnlk
  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

compose up dns Container (using port 53)

Actual behavior

ERROR: for dev-dns Cannot start service dev-dns: Ports are not available: listen udp 0.0.0.0:53: bind: address already in use

Information

  • macOS Version: BigSur 11.2
  • Docker Desktop Version: 3.1.0 (60984)

I'm using docker-compose and try to up dnsmasq Container with port 53.

  dev-dns:
    image: myenv/dnsmasq:latest
    hostname: dev-dns
    container_name: dev-dns
    environment:
      DNS_SERVER: 8.8.8.8
      DOCKER_DNS_SERVER: 172.19.10.250
      DOCKER_DNS_TLD: localhost
    privileged: true
    networks:
      mynet:
        ipv4_address: 172.19.10.250
      - "53:53/udp"
      - "53:53/tcp"

But, can't up this container, an error message is below

ERROR: for dev-dns  Cannot start service dev-dns: Ports are not available: listen udp 0.0.0.0:53: bind: address already in use

Port53 is used by mDnsResponder process, but can't disable mDnsResponder unless i use SIP.

how to resolve it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions