-
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
containers/buildah image misses settings for build user #4669
Comments
We want to fall back to fuse-overlayfs not use it by default. If the kernel supports using native overlay for the rootless user we should use it, If we hard code fuse-overlayfs into the configuration, then we won't be able to use native overlay. Podman/Buildah are supposed to be smart enough to fall back to fuse-overlayfs (if it is installed) and /dev/fuse device exists and native overlayfs is not supported. |
AFAIU the docker image doesnt change the defaults, but adds lines to use a custom mount step: buildah/contrib/buildahimage/Containerfile Lines 70 to 74 in a8ba52d
Your own docker image sets that config - but only for |
The container has configuration for root, this commit adds a similar configuration for the build user. Closes: containers#4669
The container has configuration for root, this commit adds a similar configuration for the build user. Closes: containers#4669 Signed-off-by: Norbert Lange <[email protected]>
The container has configuration for root, this commit adds a similar configuration for the build user. Closes: containers#4669 Signed-off-by: Norbert Lange <[email protected]>
This is a bug We should not be turning on the mount_program for rootful mode, we should use native overlay. |
A friendly reminder that this issue had no activity for 30 days. |
@flouthoc you reverted my fix for this, could you followup on this? |
A friendly reminder that this issue had no activity for 30 days. |
Yes let me check this. |
A friendly reminder that this issue had no activity for 30 days. |
Checking this now. |
For image published at `quay.io/containers/buildah` buildah should correctly use `fuseoverlay` for rootless `build` user `fuse-overlayfs`. Closes: containers#4669 [NO NEW TESTS NEEDED] Signed-off-by: Aditya R <[email protected]>
Description
The
quay.io/containers/buildah
Image seems to miss the configurationfor the non-root build ($HOME/.config/containers/storage.conf).
In turn, running the container as build user will use the default settings and not
work with
fuse-overlayfs
Steps to reproduce the issue:
Run
podman run --rm -it --device /dev/fuse --user build quay.io/containers/buildah buildah info
Observe that unlike as root the configuration to use
fuse-overlayfs
is missing:Describe the results you received:
Running as build user,
buildah build
will not use fuse, and depending on other settings (which I haven't narrowed down),errors will come up like the one below (
apt-get install ca-certificates
wont finish):Describe the results you expected:
buildah build
proceeding without errors (as it does when not usingpodman
's--user build
option)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
:(comments removed)
The text was updated successfully, but these errors were encountered: