-
Notifications
You must be signed in to change notification settings - Fork 788
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
podman build
fails DNS lookups under systemd-resolved
; podman run
works
#3806
Comments
systemd-resolve
; podman-run workssystemd-resolved
; podman-run works
The difference is pretty simple:
Notice that This means the easiest workaround is to pass
|
After thinking about it, I think The problem here is my empty /etc/resolv.conf. Even other parts of my system are broken, like
I guess
With that in place, DNS works the same in all containers. So my issue here is really that |
This comment is very enlightening to me! https://github.com/containers/buildah/pull/3424/files#r684621757 |
systemd-resolved
; podman-run workspodman build
fails DNS lookups under systemd-resolved
; podman run
works
@Luap99 PTAL |
I think buildah should match podman, ideally we would use the same code for both projects so it should be moved into c/common. |
That would be great! |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 is this part of the same /etc/hosts effort? |
No that would be different work but I will try to get to it after my hosts work. |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 did you get a chance to look at this? |
working on it right now |
/assign |
Thank you @Luap99 for following up :) |
Podman and Buildah should use the same code the generate the resolv.conf file. This mostly moved the podman code into c/common and created a better API for it so buildah can use it as well. [NO NEW TESTS NEEDED] All existing tests should continue to pass. Fixes containers#3806 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Podman and Buildah should use the same code the generate the resolv.conf file. This mostly moved the podman code into c/common and created a better API for it so buildah can use it as well. [NO NEW TESTS NEEDED] All existing tests should continue to pass. Fixes containers#3806 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Podman and Buildah should use the same code the generate the resolv.conf file. This mostly moved the podman code into c/common and created a better API for it so buildah can use it as well. [NO NEW TESTS NEEDED] All existing tests should continue to pass. Fixes containers#3806 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Podman and Buildah should use the same code the generate the resolv.conf file. This mostly moved the podman code into c/common and created a better API for it so buildah can use it as well. [NO NEW TESTS NEEDED] All existing tests should continue to pass. Fixes containers#3806 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Podman and Buildah should use the same code the generate the resolv.conf file. This mostly moved the podman code into c/common and created a better API for it so buildah can use it as well. [NO NEW TESTS NEEDED] All existing tests should continue to pass. Fixes containers#3806 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Podman and Buildah should use the same code the generate the resolv.conf file. This mostly moved the podman code into c/common and created a better API for it so buildah can use it as well. [NO NEW TESTS NEEDED] All existing tests should continue to pass. Fixes containers#3806 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Description
podman build
has broken DNS on a system that only usessystemd-resolved
. Butpodman run
works.This seems to be the same issue as #2780, but triggered in a novel way.
Steps to reproduce the issue:
Use
iwd
+systemd-resolve
:There's probably a simpler way to do this, but the way I have in front of me involves
iwd
. If I figure out a simpler reproduction you can be sure I'll include it below :)Disable
/etc/resolv.conf
:Enable DHCP
Connect to a WiFi network:
Confirm that
systemd-resolve --status
reports DNS servers.Confirm DNS is working outside of any container:
Try to build any container that needs to connect to the network:
Describe the results you received:
Compare with the identical container made with
podman run
:Describe the results you expected:
podman run
andpodman build
should have identical environments, and the build should succeed.Output of
rpm -q buildah
orapt list buildah
:I don't seem to have
buildah
installed?I skimmed
strace
and it looks likebuildah
has been compiled into podman. Is that possible?Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: