Closed malikwirin closed 1 month ago
I am extremely confident that this is because you set networking.nameservers = [ "127.0.0.1" "::1" ];
which podman
discards because 127.0.0.1
in the container is the container itself and not your host's nameserver.
You can configure different nameservers just for podman
. Please refer to its documentation instead.
I am extremely confident that this is because you set
networking.nameservers = [ "127.0.0.1" "::1" ];
whichpodman
discards because127.0.0.1
in the container is the container itself and not your host's nameserver.You can configure different nameservers just for
podman
. Please refer to its documentation instead.
When outputting the content of /etc/resolv.conf inside the container I get the following.
search dns.podman
nameserver 10.89.1.1
options edns0 trust-ad
So it tries to use the dns server of the host propably. Do I maybe have to open the port for it from the host to the podman network?
But at the same time I don't have dns problems when running a container as my normal user.
I am debuggin this for two days already @emilylange of course I also tried setting nameserver to only the cloudflare ip I reboot after every rebuild and before every test
I hope I am not claiming to many peoples time but this has kind of a high priority due to beeing a massive roadblock @afh @CyberShadow @Kranzes
In my experience any DNS server not in the network needs usually some custom config for containers to work. I would suggest to use tcpdump to debug until where the packet is roughly going and then iptables counters to know which rules drops it.
The problem was that even after switching from Podman to docker I still had podman networking settings enabled
Describe the bug
No Domain is reachable when the podman Container is started by the gitea-actions-runner service. Therefore all workflows fail.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Normal name resolution inside the container
Additional context
My forgejo-runner configurration:
My podman configuration:
My Networking configuration:
My DNS configuration:
Notify maintainers
@adamcstephens @emilylange @mweinelt @SuperSandro2000 @zowoq
Add a :+1: reaction to issues you find important.