-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Build fails if slirp4netns is installed #2572
Comments
@giuseppe PTAL |
it looks like a duplicate of the Buildah issue, how does the |
|
thanks, so the issue is that it is using a local DNS server that is not accessible from the rootless container. Do you get anything different if you run as root user? |
hmmm... the |
I am surprised that it works as root, how does the network inside of the container look like I am trying to reproduce locally using a similar |
Bind-mounting |
rootless:
run as root: it's just my local network context FROM debian
RUN ip addr
RUN cat /etc/resolv.conf
RUN ping google.com run as: |
ah ok, so as root it is running the equivalent of
|
|
I've opened a PR to honor That is the solution, I believe, when the |
@giuseppe Why not just write slirp4netns built-in DNS |
when --net is specified, pass it down to Buildah. Depends on: containers/buildah#1395 Closes: containers#2572 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
great idea. I've added a patch to do it |
IMHO - in this situation will be better to change order of nameservers into guest's resolv.conf - please add 10.0.2.3 as first one and then all others because default number of nameservers used by system is only 3 (MAXNS in resolv.h). |
/kind bug
Description
Build fails if
slirp4netns
is installed (it builds withoutslirp4netns
)Steps to reproduce the issue:
slirp4netns
(v0.3.0-alpha.2)maybe related to containers/buildah#1223
Describe the results you received:
The domain name
deb.debian.org
can not be resolved in build.Describe the results you expected:
It should resolve the domain...
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
Ubuntu 18.4
The text was updated successfully, but these errors were encountered: