Skip to content

Commit de988fc

Browse files
Kobzoldtrudg
authored andcommitted
Add instructions on how to build from a local Docker image
I have often needed to build a Apptainer container from a local Docker image (not from a remote image in a Docker registry). I think that this might be a relatively popular use-case, but currently this workaround is only described in an issue on GitHub (apptainer/singularity#1537 (comment)). It would be nice to also have it in the official docs.
1 parent f7eecf1 commit de988fc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build_a_container.rst

+11
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ them into {Singularity} containers.
7373
7474
$ sudo singularity build lolcow.sif docker://sylabsio/lolcow
7575
76+
*************************************************
77+
Building from an existing local Docker container
78+
*************************************************
79+
80+
You can also use ``build`` to create a {Singularity} container
81+
from a local Docker image.
82+
83+
.. code::
84+
85+
$ sudo singularity build lolcow.sif docker-daemon://lolcow:latest
86+
7687
.. _create_a_writable_container:
7788

7889
*******************************************

0 commit comments

Comments
 (0)