-
Notifications
You must be signed in to change notification settings - Fork 785
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
Rootless buildah + slirp4netns = no network #1660
Comments
Might containers/podman#3277 be related? |
Seems reasonable. @giuseppe PTAL |
we should be using How does your |
Is this on
Just the default one on my workstation: classic DHCP home router
|
That would be the issue. Since the no process is listening at 127.0.1.1 |
Sorry, I lost you there. Are you saying that the conflict is caused by the DHCP daemon? As far as I know, there is nothing special about it on the system I am testing on. Could you suggest a possible workaround? |
|
@giuseppe Can you port over the way we handle this in Podman to Buildah? |
what would be the best way to share code? Should we move the generation of |
@giuseppe Thank you for the explanation, it is clear now. Using |
@giuseppe Yes move it to a pkg under buildah. |
add the slirp built-in DNS server when using slirp4netns. Closes: containers#1660 Signed-off-by: Giuseppe Scrivano <[email protected]>
add the slirp built-in DNS server when using slirp4netns. Closes: containers#1660 Signed-off-by: Giuseppe Scrivano <[email protected]>
Description
I am trying to get
buildah
andpodman
to work in rootless mode. With the default install (Ubuntu 16.04 via PPA)podman
complains about missingslirp4netns
. However, after installing the librarybuildah run
has no network access.I found a workaround by adding
--network=host
to thebuildah run
command. However, I still feel that this issue should be brought to the attention of the devs.Steps to reproduce the issue:
I am performing the following minimal example to reproduce the behavior. Note that the steps are performed without
slirp4netns
installed and later with it. Removing the library restores consistently the initial behavior.apt-get
. Note that, since I am runningbuildah 1.8-dev
, I am affected by this bug and therefore applying this workaroundslirp4netns
is not installed, podman gives error (see comments below and here) so I installed it withapt-get install slirp4netns
(which leads to the problem described in this issue).Describe the results you received:
Step 2 above:
slirp4netns
slirp4netns
(container has no network access)slirp4netns
if run as root (replaceBUILDAH_ISOLATION=rootless buildah run --isolation=
withsudo buildah run
slirp4netns
if run as normal user and adding the option--network=host
to thebuildah run
commandDescribe the results you expected:
Step 2 should probably "just work". Buildah should detect the rootless environment and adjust as necessary.
Also, if
podman
requiresslirp4netns
it should be probably added as a dependency of the PPA package.Output of
rpm -q buildah
orapt list buildah
: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: