singularity instance stop

Stop a named instance of a given container image

Synopsis

The command singularity instance stop allows you to stop and clean up a named, running instance of a given container image.

singularity instance stop [stop options...] [instance]

Examples

$ singularity instance start my-sql.sif mysql1
$ singularity instance start my-sql.sif mysql2
$ singularity instance stop mysql*
Stopping mysql1 instance of my-sql.sif (PID=23845)
Stopping mysql2 instance of my-sql.sif (PID=23858)

$ singularity instance start my-sql.sif mysql1

Force instance to shutdown
$ singularity instance stop -f mysql1 (may corrupt data)

Send SIGTERM to the instance
$ singularity instance stop -s SIGTERM mysql1
$ singularity instance stop -s TERM mysql1
$ singularity instance stop -s 15 mysql1

Options

-a, --all             stop all user's instances
-F, --force           force kill instance
-h, --help            help for stop
-s, --signal string   signal sent to the instance
-t, --timeout int     force kill non stopped instances after X seconds (default 10)
-u, --user string     if running as root, stop instances belonging to user

SEE ALSO

Auto generated by spf13/cobra on 2-Jul-2021