Skip to content

Update install.sh #634

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mribeirodantas
Copy link
Member

The apptainer install.sh script is apparently failing silently. This fix should make Apptainer work again inside the container image.

The apptainer `install.sh` script is apparently failing silently. This fix should make Apptainer work again inside the container image.
Copy link

netlify bot commented Jul 18, 2025

Deploy Preview for nextflow-training ready!

Name Link
🔨 Latest commit 6536dcf
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-training/deploys/687a4f70d49c5d0008e704b2
😎 Deploy Preview https://deploy-preview-634--nextflow-training.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mribeirodantas mribeirodantas linked an issue Jul 18, 2025 that may be closed by this pull request
@nathanweeks
Copy link

nathanweeks commented Aug 21, 2025

I verified that this PR results in a successful apptainer installation.

However, I ran into the following error when attempting to use apptainer in a codespace (using the "codespaces-dev" dev container, i.e. .devcontainer/codespaces-dev/devcontainer.json) :

/tmp -> apptainer pull docker://docker.io/library/ubuntu:24.04
...
/tmp -> apptainer exec ubuntu_24.04.sif cat /etc/os-release
INFO   : A system administrator may need to enable user namespaces, install
INFO   :   apptainer-suid, or compile with ./mconfig --with-suid
ERROR  : Failed to create user namespace: user namespace requires to set /proc/sys/kernel/unprivileged_userns_clone to 1
/tmp -> cat /proc/sys/kernel/unprivileged_userns_clone
1       

Ultimately the following dev container runArgs were required to resolve all errors with the above apptainer exec command:

    "runArgs": [
        "--device=/dev/fuse",
        "--security-opt=seccomp=unconfined",
        "--security-opt=apparmor=unconfined"
    ],

For the "local-dev" dev container (.devcontainer/local-dev/devcontainer.json), the following sufficed in my environment---RockyLinux 8.10 with rootless Podman:

    "runArgs": [
        "--device=/dev/fuse"
    ],

though the other two --security-opt... options did no harm. (Note the "docker-outside-of-docker" feature does not appear to be immediately compatible with rootless podman, and was commented out).

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

Successfully merging this pull request may close these issues.

Apptainer not working in container
2 participants