Skip to content
Snippets Groups Projects
Commit 25850ed6 authored by Xuan Gu's avatar Xuan Gu
Browse files

Update README.md

parent ca7be015
Branches main
Tags v2024.11
No related merge requests found
......@@ -122,3 +122,14 @@ enroot start --rw --env DISPLAY --mount /tmp/.X11-unix:/tmp/.X11-unix --mount /p
```
Please note that you need to use the flag ```-X``` to set up the X11 forwarding when connecting to Berzelius.
## Cheat sheet
| Task | Command |
|:--------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------:|
| Import a new container | enroot import 'docker://nvcr.io#nvidia/pytorch:22.09-py3' enroot import 'docker://pytorch/pytorch:1.12.1-cuda11.3-cudnn8-devel' |
| Create an instance of a container | enroot create --name nvidia_pytorch_22.09 nvidia+pytorch+22.09-py3.sqsh |
| Destroy an instance | enroot remove nvidia_pytorch_22.09 |
| Run an enroot image | enroot start --rw --mount /your/local/path:/path/mounted/on/enroot nvidia_pytorch_22.09 |
| Run an enroot image as root | enroot start --root --rw --mount /your/local/path:/path/mounted/on/enroot nvidia_pytorch_22.09 |
| Run an enroot image and execute your command | enroot start --rw --mount /your/local/path:/path/mounted/on/enroot nvidia_pytorch_22.09 sh -c 'python my_script.py' |
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment