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 reading manifest - OCI index found, but accept header does not support OCI indexes #1312

Closed
jonahcullen opened this issue Feb 10, 2023 · 4 comments

Comments

@jonahcullen
Copy link

jonahcullen commented Feb 10, 2023

Version of Singularity
3.5.2

Describe the bug
Trying to build image from docker ubuntu results in the following error

While performing build: conveyor failed to get: Error reading manifest 20.04 in docker.io/library/ubuntu: manifest unknown: OCI index found, but accept header does not support OCI indexes

To Reproduce
The test.def file contains

Bootstrap: docker
From: ubuntu:20.04

and build with sudo singularity build --tmpdir /scratch/test/tmp test.sif test.def.

Expected behavior
A singularity image! This has worked just fine up until very recently. From: ubuntu:latest returns the same error but From: alpine:latest builds successfully. I can see from the docker hub that ubuntu 20.04 has been recently updated so perhaps it is on their end?

OS / Linux Distribution
18.04.3 LTS (Bionic Beaver)

@jonahcullen jonahcullen added the bug Something isn't working label Feb 10, 2023
@dtrudg
Copy link
Member

dtrudg commented Feb 10, 2023

3.5.2

I'm afraid that this is an old version of Singularity from Dec 2019, that no longer receives any support or fixes.

Ubuntu recently changed their official docker hub image builds, and they now use .oci. mediatypes instead of .docker. mediatypes.

You will need to upgrade to a current version of singularity, which uses an updated dependency for handling docker/oci images that handles the change.

@dtrudg dtrudg closed this as completed Feb 10, 2023
@dtrudg dtrudg removed the bug Something isn't working label Feb 10, 2023
@dtrudg
Copy link
Member

dtrudg commented Feb 10, 2023

FYI - it's not possible to pull ubuntu:latest with a 2019 version of Docker, any more, either:

docker-library/official-images#14025 (comment)

@celstark
Copy link

FWIW, you can specify an older bionic tag and have it still build: ubuntu:bionic-20221215

@jonahcullen
Copy link
Author

Ah okay thank you very much! I ended up upgrading singularity to 3.11.0 and all is now well.

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

3 participants