From 82acd921c87b2b4309040e699ca36578c992af3f Mon Sep 17 00:00:00 2001 From: Josef Hrabal <josef.hrabal@vsb.cz> Date: Wed, 20 Dec 2017 09:00:48 +0100 Subject: [PATCH] Singularity style changed --- docs.it4i/software/tools/singularity.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs.it4i/software/tools/singularity.md b/docs.it4i/software/tools/singularity.md index 3c9142a07..fd3003b3e 100644 --- a/docs.it4i/software/tools/singularity.md +++ b/docs.it4i/software/tools/singularity.md @@ -63,7 +63,7 @@ Cleaning up... ## Launching the Container -The interactive shell can be invoked by the **shell** command. This is useful for development purposes. To make changes inside the container permanent use **-w | --writable** option. +The interactive shell can be invoked by the `singularity shell` command. This is useful for development purposes. To make changes inside the container permanent use `-w | --writable` option. ```console hra0031@login4:~$ singularity shell -w ubuntu.img @@ -76,7 +76,7 @@ DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS" ``` -To execute command inside container (without interactive shell) use **exec** command. +To execute command inside container (without interactive shell) use `singularity exec` command. ``` hra0031@login4:~$ singularity exec ubuntu.img cat /etc/lsb-release @@ -86,7 +86,7 @@ DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS" ``` -Singularity image can contain a runscript. This script is executed inside container after the **run** command is used. The runscript is mostly used to run an application for which is the container build, in the following example it is **fortune | cowsay** command. +Singularity image can contain a runscript. This script is executed inside container after the `singularity run` command is used. The runscript is mostly used to run an application for which is the container build, in the following example it is **fortune | cowsay** command. ``` hra0031@login4:~$ singularity run ubuntu.img @@ -102,7 +102,7 @@ hra0031@login4:~$ singularity run ubuntu.img ## Accessing /HOME and /SCRATCH Within Container -By default, user home directory is mounted inside the container, therefore you can access your files directly. If you need access to **/SCRATCH** storage for your computation, this must by mounted be **-B | --bind** option. +By default, user home directory is mounted inside the container, therefore you can access your files directly. If you need access to **/SCRATCH** storage for your computation, this must be mounted by `-B | --bind` option. !!!Warning Be aware, that the mounted folder has to exist inside the container or the container image has to be writable! -- GitLab