Skip to content

Commit

Permalink
fix docker run cmd in gcp gpu script
Browse files Browse the repository at this point in the history
  • Loading branch information
benfoley committed Jul 12, 2022
1 parent fffa20b commit 14475e2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/wiki/install-elpis-on-gcp-gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ For a basic machine, use these settings:
* Add the script below to the `Management` > `Startup scripts` section

```shell
# GPU startup script v0.3
# GPU startup script v0.6.3

# Check if this has been done before & skip if so
# Check if this has been done before. Skip driver installation if so, just run Elpis
if [[ -f /etc/startup_installed ]];
then
sudo chmod 666 /var/run/docker.sock
# Run Elpis (non-interactive so that Elpis starts automatically)
docker run -d --rm --name elpis --gpus all -p 80:5001/tcp -p 6006:6006/tcp coedl/elpis:latest
exit 0;
fi


# Otherwise, install all the things.. then run Elpis
# Install CUDA

sudo apt install linux-headers-$(uname -r)
Expand All @@ -44,7 +46,6 @@ sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/
sudo apt update
sudo apt -y install cuda


# Install NVIDIA Container Toolkit

curl https://get.docker.com | sh \
Expand All @@ -60,7 +61,6 @@ sudo systemctl restart docker
sudo usermod -aG docker $USER
sudo chown $USER /var/run/docker.sock
sudo chmod 666 /var/run/docker.sock
docker pull coedl/elpis:latest

# Handy little app to check NVIDIA GPUs stats
sudo apt -y install nvtop
Expand All @@ -77,6 +77,8 @@ touch /etc/startup_installed

echo "done"

# Download and run Elpis (non-interactive so that Elpis starts automatically)
docker run -d --rm --name elpis --gpus all -p 80:5001/tcp -p 6006:6006/tcp coedl/elpis:latest
```


Expand Down

0 comments on commit 14475e2

Please sign in to comment.