Skip to content

Commit

Permalink
add persistent homedirectory option
Browse files Browse the repository at this point in the history
  • Loading branch information
stebo85 authored Oct 29, 2023
1 parent 3b1bd99 commit 2fa27ac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions content/en/docs/Getting Started/Neurodesktop/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,29 @@ ssh -L 8888:127.0.0.1:8888 USER@IP

1. then start neurodesktop:

1.a) with a persistent home directory:
```bash
docker volume create neurodesk-home \
sudo docker run \
--shm-size=1gb -it --privileged --user=root --name neurodesktop \
-v ~/neurodesktop-storage:/neurodesktop-storage \
--mount source=neurodesk-home,target=/home/jovyan \
-e NB_UID="$(id -u)" -e NB_GID="$(id -g)" \
-p 8888:8888 \
-e NEURODESKTOP_VERSION={{< params/neurodesktop/jupyter_neurodesk_version >}} vnmd/neurodesktop:{{< params/neurodesktop/jupyter_neurodesk_version >}}
```

1.b) without a persistent home directory:
```bash
sudo docker run \
--shm-size=1gb -it --privileged --user=root --name neurodesktop \
-v ~/neurodesktop-storage:/neurodesktop-storage \
-e NB_UID="$(id -u)" -e NB_GID="$(id -g)" \
-p 8888:8888 \
-e NEURODESKTOP_VERSION={{< params/neurodesktop/jupyter_neurodesk_version >}} vnmd/neurodesktop:{{< params/neurodesktop/jupyter_neurodesk_version >}}
```


<!-- neurodesktop version found in neurodesk.github.io/data/neurodesktop.toml -->

{{< alert color="warning">}}
Expand Down

0 comments on commit 2fa27ac

Please sign in to comment.