forked from eborghi10/create_autonomy
-
-
Notifications
You must be signed in to change notification settings - Fork 38
Setup Docker
Emiliano Borghi edited this page Mar 16, 2021
·
19 revisions
Install docker and configure after post-installing it:
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent 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 docker-ce-cli containerd.io
To run docker without superuser:
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart
In order to use the GPU within Docker, you need to install nvidia-container-toolkit
.
sudo apt-get install -y nvidia-container-toolkit
Notes:
-
For Ubuntu 20.04, this step might not work. If so, check this link.
-
Reboot the machine after moving onto the next step.
The development image needs to be built the first time, and it will install all the dependencies that the robot will require.
Go to the root of this repository and execute:
cd /path/to/create_autonomy
./docker/build
The build script will automatically detect whether you have an NVIDIA GPU or not.
To execute the container, you can use the run script:
./docker/run
More information can be found in this Jupyter Notebook.