Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
start:software:containers:singularity [2021/02/01 18:48] ntretyak [Are there any plans to provide Docker as well?] |
start:software:containers:singularity [2021/02/16 12:48] meesters |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== What is a container? ===== | ===== What is a container? ===== | ||
- | Container | + | Container |
- | ===== Why Singularity? | + | |
- | Citing the official documentation of Singularity: <callout type=" | + | ===== About Singularity |
+ | |||
+ | <callout type=" | ||
It is an open-source project initiated at the Lawrence Berkeley National Laboratory. It is focused on: | It is an open-source project initiated at the Lawrence Berkeley National Laboratory. It is focused on: | ||
Line 14: | Line 15: | ||
* Portability and reproducibility of computations. The single file SIF container format is easy to transport and share. | * Portability and reproducibility of computations. The single file SIF container format is easy to transport and share. | ||
- | * A simple, effective security model. You are the same user inside a container as outside, and cannot gain additional privilege on the host system by default. | + | * A simple, effective security model. You are the same user inside a container as outside, and cannot gain additional privilege on the host system by default. |
- | ===== Basic usage ===== | + | ===== Using Singularity on Mogon ===== |
+ | |||
+ | We provide Singularity as an [[start: | ||
<code bash> | <code bash> | ||
- | $ module load tools/ | + | $ module load tools/ |
</ | </ | ||
- | ===== Use cases ===== | ||
- | === Interactive usage === | + | ==== Interactive usage ==== |
- | You can use Singularity in your [[https:// | + | |
+ | You can use Singularity in your [[https:// | ||
<code bash> | <code bash> | ||
$ singularity shell my-fluffy-cow.sif | $ singularity shell my-fluffy-cow.sif | ||
Line 45: | Line 48: | ||
NO, but you can convert your Docker image into a Singularity image and launch it on MOGON 2. | NO, but you can convert your Docker image into a Singularity image and launch it on MOGON 2. | ||
- | Here are the steps you have to do **on your local machine**, where you have a Docker image called '' | + | |
+ | * There is a way to directly download a Docker image from the docker hub and convert it into Singularity image: <code bash>$ singularity build my-fluffy-cow.sif docker:// | ||
+ | |||
+ | * If you have already your own image, which is not on the docker hub, you still can convert it. Here are the steps you have to do **on your local machine**, where you have a Docker image called '' | ||
- Find out the Docker image ID with '' | - Find out the Docker image ID with '' | ||
Line 54: | Line 60: | ||
- Copy the tarball to MOGON 2 via '' | - Copy the tarball to MOGON 2 via '' | ||
+ | After this, you'll have to wait couple of moments until the archive is copied. When it is done, login to the MOGON 2 and: | ||
+ | |||
+ | - Load Singularity module with: <code bash>$ module load tools/ | ||
+ | - Convert Docker tarball to Singularity image: <code bash>$ singularity build my-fluffy-cow.sif docker-archive:// |