Would you like to learn how to use the Singularity commands to create and manage containers and images? In this tutorial, we are going to show Singularity examples to use on a computer running Ubuntu Linux.
• Ubuntu 18.04
• Ubuntu 19.04
• Singularity 3.5.2
Singularity Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Singularity.
Tutorial Singularity – Download Image
To download a Singularity image, use the following command:
To download and convert a Docker image, use the following command:
To clear the Singularity cache, use the following command:
Tutorial Singularity – Create Instance
To start an Singularity container instance from an image, use the following command:
Here is another example:
Tutorial Singularity – List Instances
To list running Singularity instances, use the following command:
Here is the command output:
Tutorial Singularity – Accessing an Instance Shell
To access a running Singularity instances shell, use the following command:
Here is the command output:
Keep in mind that your acess is read-only.
Tutorial Singularity – Stop Instances
To stop a Singularity instance, use the following command:
Here is the command output:
To stop all Singularity instances, use the following command:
Tutorial Singularity – Delete Image
To delete a Singularity image, use the following command:
Here is the command output:
Tutorial Singularity – Change an Image
Download a Singularity image and start an instance using read-write permission.
Here is the command output: