sudo singularity build --sandbox mycontainer <recipe> # n.b. recipe could be a def file or a docker:// uri# this generates a mycontainer/ directorysudo singularity shell -w mycontainer<...install tools..., exit from shell>sudo singularity build mycontainer.sif mycontainer
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/singularity/CAJfzO5T12YP9OLAnQxkHancmeEa%2B2JCper4vjSeHSN3_Uy32aQ%40mail.gmail.com.
Hi Jeff,yes - singularity containers are immutable by default.
The --sandbox option allows you to create a writable container without using an ext3 filestore. I've not tried this directly from a docker container, but perhaps this will work:sudo singularity build --sandbox mycontainer <recipe> # n.b. recipe could be a def file or a docker:// uri# this generates a mycontainer/ directorysudo singularity shell -w mycontainer<...install tools..., exit from shell>sudo singularity build mycontainer.sif mycontainer
note that in this form, the final build of the immutable mycontainer.sif is not directly reproducible from a single recipe, which is one of the advantages of Singularity.Chris--On Sat, 2 May 2020 at 13:07, Jeffrey Layton <layt...@gmail.com> wrote:--Good morning,I have a Singularity image that I created from a Docker image. I then tried to shell into the container using the --writable option and got an error:$ singularity shell --writable cuda_10_1-base-ubuntu18_04.simg
FATAL: no SIF writable overlay partition found in /home/laytonjb/NVIDIA/CONTAINER-4/cuda_10_1-base-ubuntu18_04.singI was reading a it and found a comment from April 2019 that you need an image with ext3 or a sandbox image. Is the source of the error because it's using squashfs?What I want to accomplish is shelling into an existing container, install some tools, and then save that container. How can I do this with Singularity?TIA,Jeff
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/singularity/CAJfzO5T12YP9OLAnQxkHancmeEa%2B2JCper4vjSeHSN3_Uy32aQ%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/singularity/CAMWh0wuWNkdE2yOhpp_bV7q72Jy80%3D0JvgZg5RQ_Vu8PgS8n-Q%40mail.gmail.com.
singularity build --sandbox mywritableimage mycontainer.sif
singularity inspect -d mycontainer.sif
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/singularity/CAJfzO5Qxhd%3Dwk8OfWnW_6%3DUGrdYhQc%2B5XLxHJY4A8sACwQuhmA%40mail.gmail.com.