-
Notifications
You must be signed in to change notification settings - Fork 74
noetic_docker
- The notes cover options for both with and without NVIDIA GPU support. Where the instructions diverge, you will see options
a) NVIDIA
andb) Non-NVIDIA
. Both variants use the sameDockerfile
, but - These notes are based on using an anecdotal testing
- NVIDIA variant tested on both Ubuntu 20.04 and Ubuntu 18.04 hosts.
- Non-NVIDIA variant tested on Ubuntu 20.04 using Virtualbox. Using this setup the sim reported a real-time factor of 1.0 and a frame rate of ~2 FPS.
which includes this test...
sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
Install docker on your host. E.g., for Ubuntu 20.04 here are instructions.
Make sure you pass the test...
sudo docker run hello-world
Check your version of Docker, you should see something like...
docker -v
Docker version 20.10.2, build 2291f61
See Docker: Post-installation steps for Linux
sudo usermod -aG docker $USER
You will need to re-login for this to take complete effect, but for a particular bash session you can
su - $USER
Use apt
as described in the rocker README.md.
Also required
sudo apt install python3-distutils
cd dave/docker
docker build --tag dave_noetic --file DockerfileNoetic ./
Use rocker to start a container from the image.
If you have a GPU, including the --nvidia
option.
rocker --dev-helpers --nvidia --x11 --user --home --git dave_noetic:latest
rocker --dev-helpers --x11 --user --home --git dave_noetic:latest
You will probably want to have multiple terminal within the container. To do so, you can execute an interactive bash session in the running container. A short bash script is supplied which will find the running container by image name and open a new shell in that container...
cd dave/docker
./join.bash dave_noetic