...
Codeblock |
---|
language | text |
---|
theme | Midnight |
---|
title | Beispiel: Ubuntu 20.04 Image herunterladen und einen Container daraus erstellen |
---|
|
student@mine:~/containers$ singularity pull ubuntu.sif library://ubuntu:20.04 |
...
Codeblock |
---|
language | text |
---|
theme | Midnight |
---|
title | Beispiel: Container lokal erkunden |
---|
|
# Start the container, and enter the shell
singularity shell ./ubuntu.sif
# Now check the operating system of the container, you would see Ubuntu
head /etc/os-release
# your user id inside container
whoami
# exit the container
exit |
Codeblock |
---|
language | text |
---|
theme | Midnight |
---|
title | Convert the ubuntu.sif file into a Singularity sandbox |
---|
|
student@mine:~/containers$ singularity build --fakeroot --sandbox myubuntu ./ubuntu.sif |
Codeblock |
---|
language | text |
---|
theme | Midnight |
---|
title | Beispiel: Container lokal erkunden |
---|
|
|
Nachdem der Container gebaut und auf das Cluster übertragen wurde, kann er mit den folgenden Befehlen gestartet werden.
...