Newer
Older
glx-docker-headless-gpu / server.sh
@kbkn kbkn on 31 Mar 2021 481 bytes change download method
#!/bin/bash
if [ ! -e ./cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb ]; then
  wget https://developer.download.nvidia.com/compute/cuda/11.2.2/local_installers/cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb
fi

docker build -t sim . && \
# docker run --device=/dev/tty0:rw -it --rm --gpus all \
docker run --privileged -it --rm --gpus all \
  -p 6080:8081 \
  -e RESOLUTION=1920x1080 \
  -e VNCPASS=pass \
  --name sim sim
  # -v $HOME/hoge:/hoge:ro \