Skip to content

Can't pull image on aarch64 #135

Description

@mattbucci

Unable to find image 'quay.io/singularity/docker2singularity:latest' locally
latest: Pulling from singularity/docker2singularity
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.

I don't see any reason why an image wouldn't be able to be built for aarch64 looking at the Dockerfile, it just seems that the runner isn't set up to build arm images and combine them into a single manifest

dockerfile: [[Dockerfile, linux/amd64, '']]

Activity

  1. vsoch commented on Nov 5, 2024

    @vsoch
    Member

    There never was a build for aarch64. For this conversion you should be pulling down directly anyway:

    singularity pull docker://<uri>
    
  2. mattbucci commented on Nov 5, 2024

    @mattbucci
    Author

    Thanks for clarifying.

    I was looking to accomplish something like this https://sylabs.io/2023/12/building-arm-containers-with-scs/
    (not for any good reason, just futureproofing as i'm publishing all my images in x86 and arm variants these days)

    my actual command is something more like what's found in the readme.

    docker run -v /var/run/docker.sock:/var/run/docker.sock \
    -v /tmp/test:/output \
    --privileged -t --rm \
    quay.io/singularity/docker2singularity \
    ubuntu:22.04
    

    where ubuntu:22.04 is a stand in for my private image. This runs fine on an an x86 host, but dies on an an arm device with the output listed as like you mentioned this isn't available for aarch64 at this time.

  3. mattbucci commented on Nov 5, 2024

    @mattbucci
    Author

    Thanks for the tip, this worked great:

    singularity pull docker://ubuntu:22.04
    INFO:    Converting OCI blobs to SIF format
    INFO:    Starting build...
    Getting image source signatures
    Copying blob 6414378b6477 done   |
    Copying config 97271d29cb done   |
    Writing manifest to image destination
    2024/11/04 20:23:47  info unpack layer: sha256:6414378b647780fee8fd903ddb9541d134a1947ce092d08bdeb23a54cb3684ac
    INFO:    Creating SIF file...
     ubuntu_22.04.sif
    
  4. vsoch commented on Nov 5, 2024

    @vsoch
    Member

    Sure thing! We can try adding the arm build, but they tend to be very slow on GHA, and using singularity directly is the preferred solution I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions