singularityhub / singularity-docker

docker base images to provide release versions of Singularity
https://quay.io/repository/singularity/singularity
GNU Affero General Public License v3.0
17 stars 8 forks source link

ERROR : Requesting capability set 0x000001ffffffffff while permitted capability set is 0x0000003fffffffff #18

Closed jpfeuffer closed 1 year ago

jpfeuffer commented 1 year ago

Using your 3.11.0 image on a hosted GitHub Actions runner.

see https://github.com/OpenMS/OpenMS/actions/runs/4495601964/jobs/7909390460

vsoch commented 1 year ago

You shouldn't need to dockerize singularity for GitHub actions - try just installing it to the runner. https://github.com/singularityhub/install-singularity

jpfeuffer commented 1 year ago

Thank you! I will give it a try.

jpfeuffer commented 1 year ago

It worked by the way. Thanks.

fcasson commented 1 year ago

I have the same issue. I need a docker image with singularity for gitlab CI tests on the docker runner executor

vsoch commented 1 year ago

Based on the error being about permissions, you'd need to run it in privileged mode I think?

fcasson commented 1 year ago

I did run it in privileged mode, but maybe its a problem with my docker daemon env (ubuntu on WSL2, during "hello world" prep before gitlab GI)

jpfeuffer commented 1 year ago

Hi. Maybe my corresponding issue at singularity helps you: https://github.com/sylabs/singularity/issues/1466

TLDR: Github runners do not have a recent enough daemon version. But as always, GitHub is ignoring community feedback: https://github.com/actions/runner-images/issues/7332 https://github.com/actions/runner-images/issues/7042

fcasson commented 1 year ago

Thanks for the link, I had not found it. I am not using GitHub actions, but trying to do something similar on GitLab CI using the Docker executor for runners.

Anyway my first tests before moving to gitlab CI (where I found the issue) were just locally on my laptop (in Ubunutu on WSL2). If I understand the title of that issue correctly, updating my Docker version >= 23 should help?

Will post some simple steps to reproduce later when I am back at the laptop.

EDIT: Upgrading from Docker 20 to Docker 24 fixed the issue for me on Ubuntu / WSL2. A collegue could not reproduce the issue with Docker 20, so it does seem to depend on the env in which the docker daemon is running.

EDIT2: From this links above, it also looks like downgrading the singularity version might also help, but since I have a solution by upgrading docker, I won't need to try that route.

jpfeuffer commented 1 year ago

Yes, correct, I would try that.

fcasson commented 1 year ago

For posterity, here's a oneliner to reproduce the error (on some systems) on docker versions < 23

docker run --privileged quay.io/singularity/singularity:v3.11.0 run docker://alpine

maawoo commented 1 year ago

EDIT2: From this links above, it also looks like downgrading the singularity version might also help, but since I have a solution by upgrading docker, I won't need to try that route.

Downgrading to v3.10 worked for me on Docker v24.0.2: image