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

FATAL: While performing build: packer failed to pack: while unpacking tmpfs: error unpacking rootfs: unpack rootfs: config blob is not correct mediatype application/vnd.oci.image.config.v1+json: application/vnd.docker.container.image.v1+json #1280

Closed
MilowB opened this issue Feb 1, 2023 · 2 comments

Comments

@MilowB
Copy link

MilowB commented Feb 1, 2023

I am using the following .def file to build my container:

Bootstrap: docker
From: ubuntu:latest

%runscript
exec python3 src/main.py --platform platforms/small_platform.xml

%post
apt-get update && apt-get -y install python3 git wget
apt -y install python3-pip
apt -y install python3-simgrid
pip install tensorflow
python3 -m pip install --upgrade Pillow

It worked fine for several weeks until I had to add a lib in the file and build the container again.
Now, when I singularity build this file, the output shows:

INFO:    Starting build...
Getting image source signatures
Copying blob 677076032cca skipped: already exists  
Copying config 58db3edaf2 done  
Writing manifest to image destination
Storing signatures
2023/02/01 12:44:25  info verified reader: 2299 bytes of trailing data discarded from vrdr[/tmp/bundle-temp-2160118556/blobs/sha256/58db3edaf2be6e80f628796355b1bdeaf8bea1692b402f48b7e7b8d1ff100b02]
FATAL:   While performing build: packer failed to pack: while unpacking tmpfs: error unpacking rootfs: unpack rootfs: config blob is not correct mediatype application/vnd.oci.image.config.v1+json: application/vnd.docker.container.image.v1+json

I noticed that this error can be avoided by using ubuntu:16.04 instead of ubuntu:latest.
Any idea where the error comes from ? And maybe how I can fix it ?

@dtrudg
Copy link
Member

dtrudg commented Feb 1, 2023

The maintainers of the official ubuntu docker hub images recently made a change to how they are built, which breaks pulling them from various container tools, other than docker.

They are planning to revert this change, or put in place a fix. New images should be in place later today.

See: docker-library/official-images#13950 (comment)

@MilowB MilowB closed this as completed Feb 1, 2023
@cjdcordeiro
Copy link

This should fix it docker-library/official-images#13988 ;)

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