AutowareをDockerでインストールする

NVIDIA GPUつきのUbuntuにインストールする

rocker --nvidia --x11 --user --volume $HOME/autoware_map -- ghcr.io/autowarefoundation/autoware-universe:humble-latest-prebuilt

autowarefoundation.github.io

上記でエラーが出たので以下を実行する

could not select device driver "" with capabilities: [[gpu]]. - #5 by sk.ahmed401 - Docker and NVIDIA Docker - NVIDIA Developer Forums
“Permission Denied While Trying to Connect to the Docker Daemon Socket” Error | Baeldung on Linux

sudo chmod 666 /var/run/docker.sock

sudo apt install -y nvidia-docker2
sudo systemctl daemon-reload
sudo systemctl restart docker

Rocker Docker Errors with python:3-slim-stretch - unable to detect os for base image · autowarefoundation · Discussion #3470 · GitHub

rocker --nvidia --x11 --user --volume $HOME/autoware --volume $HOME/autoware_map -- ghcr.io/autowarefoundation/autoware-universe:latest-cuda