singularity build with docker-archive

239 views
Skip to first unread message

Adrian Sevcenco

unread,
Apr 14, 2022, 9:52:32 AM4/14/22
to Singularity Community Edition
Hi! I'm trying to build a singularity image with docker archive without success...

So, first i create the local archive with:
rm -rf rocky8_xrootd.tar; podman save --format docker-archive -o rocky8_xrootd.tar localhost/rocky8_xrootd

then, in the def file i have:

Bootstrap: docker-archive
From: docker-archive:./rocky8_xrootd.tar

as i understood from:
https://sylabs.io/guides/3.9/user-guide/appendix.html#docker-daemon-archive

then trying to build a get:

singularity build --fakeroot rocky8_xrootd.sif alicetokenacc.sing
INFO: Starting build...
FATAL: While performing build: conveyor failed to get: invalid image source: docker-archive parsing reference: invalid
reference format

i tried to save also to oci-archive and i got the same error..

this is singularity-ce version 3.9.6-1.fc35 (built locally)
3.9.8 does not build on fedora 35

Is there anything obvious that i'm missing?

Thanks a lot!
Adrian

David Trudgian

unread,
Apr 14, 2022, 10:09:58 AM4/14/22
to Singularity Community Edition
This is a mistake in the documentation, which I'll note to fix.

You need the bootstrap type (i.e. docker-archive) in the bootstrap line, but *not* in the from line. E.g.

Bootstrap: docker-archive
From: rocky8_xrootd.tar

> 3.9.8 does not build on fedora 35

I do SingularityCE development work daily on Fedora 35 and haven't seen an issue. Please could you file an issue on GitHub, or give more detail here, if you have a problem? If there is an issue on some configuration of Fedora 35 we'd like to fix that.

Cheers,

DT
Reply all
Reply to author
Forward
0 new messages