Skip to content
Daniel Nieto edited this page May 5, 2020 · 10 revisions

Welcome to the corsika-containers wiki!

Incomplete Docker cheatsheet

  • Build image from dockerfile:

$ docker build -t your_tag:your_version -< dockerfile

  • Run image interactively:

$ docker run -it --name handle_name your_tag:your_version

  • Transferring files between host and container:

$ docker cp foo.txt mycontainer:/foo.txt

$ docker cp mycontainer:/foo.txt foo.txt

  • Tar image for sharing without registry:

$ docker save my_image > my_image.tar

Incomplete Singularity cheatsheet

  • Build image for later interactive use (enabling write permissions)

$ singularity build --fakeroot --sandbox <your_image_name> <your_singularity_recipe>

  • Run image in interactive mode (w/ write permissions)

$ singularity shell --writable <your_image_name>

Clone this wiki locally