-
Notifications
You must be signed in to change notification settings - Fork 44
Install with Docker
cambel edited this page Aug 15, 2023
·
5 revisions
sudo apt-get install git curl
curl https://get.docker.com | sh \
&& sudo systemctl --now enable docker
sudo apt-get install docker-compose
Or follow the official guide to install docker: https://docs.docker.com/engine/install/ubuntu/
Fix docker permissions
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
Requires to log-out or reboot to recognize permissions
Install Nvidia Container Toolkit
Follow instructions here or execute the following commands:
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
&& curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
&& curl -s -L https://nvidia.github.io/libnvidia-container/$distribution/libnvidia-container.list | \
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
$ git clone https://github.com/cambel/ur3
Build the dockerfile image.
docker-compose -f docker/docker-compose.yml build
Execute this same script to access the same container from any new terminal
bash docker/launch_container.sh