Skip to content

Install with Docker

cambel edited this page Apr 10, 2022 · 5 revisions

Install basic dependencies and tools

 sudo apt-get install git curl

Install docker

For Ubuntu 18.04+

curl https://get.docker.com | sh \
  && sudo systemctl --now enable docker

Or follow the official guide to install docker: https://docs.docker.com/engine/install/ubuntu/

For Ubuntu 16.04

 sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu  $(lsb_release -cs)  stable" 
 sudo apt-get update
 sudo apt-get install docker-ce

Fix docker permissions

 sudo groupadd docker
 sudo usermod -aG docker $USER
 newgrp docker 

Requires to log-out or reboot to recognize permissions

Install nvidia-docker

distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
 && curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \
 && curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
sudo apt-get install -y nvidia-docker2 docker-compose
sudo systemctl restart docker

Clone this repo

$ git clone https://github.com/cambel/ur3

Build/run the dockerfile image.

   cd ur3/docker
   docker-compose build

Execute this same script to access the same container from any new terminal

 cd ur3/docker
 ./launch_container.sh
Clone this wiki locally