Skip to content
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

Error building container using apptainer built without suid #2190

Open
adnan-umich opened this issue Apr 26, 2024 · 1 comment
Open

Error building container using apptainer built without suid #2190

adnan-umich opened this issue Apr 26, 2024 · 1 comment

Comments

@adnan-umich
Copy link

Version of Apptainer

apptainer version 1.3.1

Expected behavior

Since I built apptainer without requiring suid, I expected this to be build without using fakeroot.

Actual behavior

Does not build:

apptainer build --ignore-subuid --fakeroot my_container.sif test.def
INFO: User not listed in /etc/subuid, trying root-mapped namespace
INFO: fakeroot command not found
INFO: Installing some packages may fail
INFO: Starting build...
INFO: Skipping GPG Key Import
FATAL: While performing build: conveyor failed to get: while copying pseudo devices: while creating /tmp/build-temp-535427745/rootfs/dev/null: operation not permitted

Steps to reproduce this behavior

apptainer build --ignore-subuid --fakeroot my_container.sif test.def

What OS/distro are you running

NAME="Red Hat Enterprise Linux"
VERSION="8.6 (Ootpa)"

How did you install Apptainer

From source
./mconfig --without-suid -b ./buildtree -p ${PREFIX} > ${logfile} 2>&1

@DrDaveD
Copy link
Contributor

DrDaveD commented Apr 30, 2024

You apparently didn't follow the compilation instructions, because the fakeroot command is not found. That's one of the required packages and is needed if /etc/subuid is not set up (or ignored).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants