You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(gitlab): propagate host DNS servers into Podman build containers
Detect the host's upstream DNS servers at runner setup time and write
them to /etc/containers/containers.conf so Podman propagates them into
every container it creates, including the nested inner containers spawned
by `podman build` RUN steps.
Without this, inner build containers inherit the systemd-resolved loopback
stub (127.0.0.53) which is unreachable from inside a container, causing
intermittent "Could not resolve host" failures for external domains.
Detection tries resolvectl, nmcli, and /etc/resolv.conf in order,
filtering out loopback addresses at each step. The existence check and
in-place replacement are scoped to the [containers] section via awk to
avoid false-positive matches in other sections (e.g. [network]).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments