GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • https://apptainer.org/docs/
  • Singularity
  • News
  • Docs
  • Admin Guide
  • User Guide
  • Archive
  • Contributed Content
  • Github Repo
  • Google Group
  • Singularity on Stack Overflow
  • Singularity Hub
  • Slack
  • Troubleshooting

This view

  • Original page
  • New address

GeezerVison is showing singularityware.github.io — instance.stop | Singularity

 
  • User Guide
  • Getting Started
    • Quick Start
    • Introduction
    • Installation
    • Build a Container
    • Build Environment
    • Container Recipes
    • Singularity Flow
    • Bind Paths and Mounts
    • Persistent Overlays
    • Running Services
    • Container Checks
    • Environment and Metadata
    • Reproducible SCI-F Apps
    • Singularity and Docker
    • Troubleshooting
  • Commands
    • Command Usage
    • build
    • exec
    • inspect
    • pull
    • run
    • shell
  • Image Command Group
    • image.export
    • image.expand
    • image.import
    • image.create
  • Instance Command Group
    • instance.start
    • instance.list
    • instance.stop
  • Deprecated
    • bootstrap

instance.stop

These docs are for Singularity Version 2.5.2. For older versions, see our archive

New in Singularity version 2.4 you can use the instance command group to run instances of containers in the background. This is useful for running services like databases and web servers. The instance.stop command lets you stop instances once you are finished using them

Overview

After initiating one or more named instances to run in the background with the instance.start command you can stop them with the instance.stop command.

Examples

These examples use a container from Singularity Hub, but you can use local containers or containers from Docker Hub as well. For a more detailed look at instance usage see Running Instances.

Start a few named instances from containers on Singularity Hub

$ singularity instance.start shub://GodloveD/lolcow cow1
$ singularity instance.start shub://GodloveD/lolcow cow2
$ singularity instance.start shub://vsoch/hello-world hiya

Stop a single instance

$ singularity instance.stop cow1
Stopping cow1 instance of /home/ubuntu/GodloveD-lolcow-master.img (PID=20522)

Stop all running instances

$ singularity instance.stop --all
Stopping cow2 instance of /home/ubuntu/GodloveD-lolcow-master.img (PID=20558)
Stopping hiya instance of /home/ubuntu/vsoch-hello-world-master.img (PID=20595)

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.