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:

Copy to Clipboard

To download and convert a Docker image, use the following command:

Copy to Clipboard

To clear the Singularity cache, use the following command:

Copy to Clipboard

Tutorial Singularity - Create Instance

To start an Singularity container instance from an image, use the following command:

Copy to Clipboard

Here is another example:

Copy to Clipboard

Tutorial Singularity - List Instances

To list running Singularity instances, use the following command:

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Tutorial Singularity - Accessing an Instance Shell

To access a running Singularity instances shell, use the following command:

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Keep in mind that your acess is read-only.

Copy to Clipboard

Tutorial Singularity - Stop Instances

To stop a Singularity instance, use the following command:

Copy to Clipboard

Here is the command output:

Copy to Clipboard

To stop all Singularity instances, use the following command:

Copy to Clipboard

Tutorial Singularity - Delete Image

To delete a Singularity image, use the following command:

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Tutorial Singularity - Change an Image

Download a Singularity image and start an instance using read-write permission.

Copy to Clipboard

Here is the command output:

Copy to Clipboard