This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Issues With Using Singularity In Order To Run Software "quested access to the resource is denied"

I am trying to use Singularity for the first time however I came across an issue.

I am using the following command:

singularity build --remote my_sif.sif docker://containing_file/my_software:latest

However I get the following error/output:

INFO: Starting build...

INFO: Setting maximum build duration to 1h0m0s INFO: Remote "cloud.sylabs.io" added. INFO: Access Token Verified! INFO:
Token stored in /filepath_remote.yaml INFO: Remote "cloud.sylabs.io" now in use. INFO: Starting build... FATAL:
While performing build: conveyor failed to get: reading manifest latest in docker.io/user/my_software : errors: denied: requested access to the resource is denied unauthorized: authentication required FATAL: While performing build: build image size <= 0

Does anyone know why this would occur?

singularity

What version of singularity are you using? Are you trying to build based on a docker image that requires authentication? Have you set up your authentication variables, e.g.:

export SINGULARITY_DOCKER_USERNAME=username
export SINGULARITY_DOCKER_PASSWORD=password

Try running your singularity command with --debug:

singularity build --remote my_sif.sif docker://containing_file/my_software:latest --debug

1 answer

Isn't build meant to build a new image based on a Singularity file? Here you are trying to convert an existing Docker image to SIF so that would simply be singularity pull docker://and_so_on.... That's at least how I do it.

Thank you I realized that the mistake I made was by not making a docker image.

Did pull work or do you need more help?

Log in to answer this question.