Skip to content

Install Docker#

We use Docker for images and containers.

Install Docker (all platforms)#

Simply go to Docker and download your version.

Install Docker (Ubuntu)#

sudo apt install docker.io

Post-install, rather than rootless, prefer to (https://docs.docker.com/engine/install/linux-postinstall/):

sudo groupadd docker # may already exist
sudo usermod -aG docker $USER

Then log out and in or simply newgrp docker.

Additionally, if you have an NVIDIA GPU, it is recommended to Install the NVIDIA Container Toolkit, e.g. it will be required by rocker --nvidia.

Additional Information#

Docker Compose#

Compose V2 is included with all currently supported versions of Docker Desktop.

Rocker#

  • osrf/rocker: A tool to run docker containers with overlays and convenient options for things like GUIs etc.

Can be installed via pip:

pip install rocker

But starting on Ubuntu 24.04:

pipx install rocker
pipx ensurepath

Tutorials and Examples#