Skip to content

Commit

Permalink
Add instructions on how to build from a local Docker image
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kobzol authored and dtrudg committed Mar 5, 2025
1 parent f7eecf1 commit de988fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build_a_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ them into {Singularity} containers.
$ sudo singularity build lolcow.sif docker://sylabsio/lolcow
*************************************************
Building from an existing local Docker container
*************************************************

You can also use ``build`` to create a {Singularity} container
from a local Docker image.

.. code::
$ sudo singularity build lolcow.sif docker-daemon://lolcow:latest
.. _create_a_writable_container:

*******************************************
Expand Down

0 comments on commit de988fc

Please sign in to comment.