Sample Header Ad - 728x90

Podman unable to advertise port 53 even when the container has his own IP address

0 votes
1 answer
455 views
I am getting an error: Error: cannot listen on the TCP port: listen tcp4 :53: bind: address already in use When creating a container that gets his own IP address, this means that regardless of if there is some host program listening at port 53 the container should have no problems listening in the same port because his IP is not the same as the Host. The command I am using to start the container is the following: sudo podman run -d --network podnet -p 53:53 --name test-container test-image And inspecting the network podnet with sudo podman inspect podnet give the following:
[
     {
          "name": "podnet",
          "id": "",
          "driver": "macvlan",
          "network_interface": "bridge0",
          "created": "",
          "ipv6_enabled": false,
          "internal": false,
          "dns_enabled": false,
          "options": {
               "mode": "passthru"
          },
          "ipam_options": {
               "driver": "dhcp"
          }
     }
]
I am in a OpenSUSE Leap Micro machine.
Asked by Delfin (150 rep)
Mar 8, 2024, 06:41 AM
Last activity: Jun 25, 2025, 08:16 PM