-
Notifications
You must be signed in to change notification settings - Fork 1
Launch Instance
Saravanabalagi Ramachandran edited this page Jan 14, 2020
·
2 revisions
SSH into the server and run,
cd ~/singularity_images
singularity instance start --nv \
--contain \
--home $HOME \
--bind ~/Projects/Python:/projects \
--bind /data:/data \
tf2.sif \
tf2
Change the arguments appropriately:
-
tf2.sif: Singularity Image file location -
tf2: Instance Name -
--bind directory_in_host:location_inside_container: The directory~/Projects/Pythonpresent on the host machine will be mapped to/projectsinside the singularity image. - You can add may
--binds to bind more directories on the host to the container. -
--home directory_in_host: Special bind command maps the directory to~inside the singularity image.
To stop and unmount a single instance, or to stop and unmount all instances, use
singularity instance stop instance://tf2
singularity instance stop -a
For more details, see singularity docs.