Autoware Core Docker installation guide#
Prerequisites#
| Item | Requirement |
|---|---|
| Docker | Docker Engine. The CPU-only core images (core and core-devel) do not use the GPU, so the NVIDIA Container Toolkit is not required. |
To install Docker Engine with the Ansible playbook of the autoware repository, see step 2 of the Docker installation and add --skip-tags nvidia.
The core CUDA images (core-cuda and core-devel-cuda) need the NVIDIA Container Toolkit and the NVIDIA GPU driver, the same as the Docker installation. For these images, do not add --skip-tags nvidia.
Info
Before you pull the core CUDA images, read the NVIDIA Deep Learning Container license. By pulling and using these images, you accept the terms and conditions of the license.
Select docker image#
| Image | Description |
|---|---|
| ghcr.io/autowarefoundation/autoware:core-jazzy | This is a runtime image. It contains the compiled Autoware Core packages and their runtime dependencies only. |
| ghcr.io/autowarefoundation/autoware:core-devel-jazzy | This is a develop image. It contains the build dependencies and the compiled Autoware Core packages in /opt/autoware. |
| ghcr.io/autowarefoundation/autoware:core-cuda-jazzy | This is a runtime image with CUDA and TensorRT. It contains the compiled Autoware Core packages and the CUDA layer of Core (autoware_cuda, cuda_blackboard and negotiated), built with CUDA. |
| ghcr.io/autowarefoundation/autoware:core-devel-cuda-jazzy | This is a develop image with CUDA and TensorRT. It contains the build dependencies, the compiled Autoware Core packages and the CUDA layer of Core in /opt/autoware. |
Replace jazzy with humble for ROS 2 Humble. Tag scheme: <stage>-<ros_distro>[-<date>|-<version>]. For example, core-jazzy-2.0.0 is the image of the Autoware 2.0.0 release. The core CUDA images started after the 2.0.0 release, so they have no release tag for 2.0.0 or an older release. The full image catalog and tag list lives in autoware/docker/README.md.
How to set up#
Pull the Docker image you want to use. The following command is for
core-jazzy:docker pull ghcr.io/autowarefoundation/autoware:core-jazzyStart a container from the image.
docker run --rm -it --net host ghcr.io/autowarefoundation/autoware:core-jazzyFor a core CUDA image, add
--gpus allto give the container access to the GPU.The entrypoint tries to enable multicast on
loand to apply the kernel settings for DDS. Without--privileged, these steps fail and the entrypoint prints[entrypoint] WARNlines. With--net host, the container uses the network of the host. In this case, apply the DDS settings and enable multicast forloon the host, or add--privilegedto the command.The container opens a Bash shell. In the runtime image, the entrypoint sources
/opt/ros/<distro>/setup.bashand/opt/autoware/setup.bash. In the develop image, runsource /opt/autoware/setup.bashyourself before you use the Autoware Core packages.
For the volume, display, and network options of docker run, see docker/README.md → Usage. To develop Autoware Core in Visual Studio Code, use the core-devel configuration of the devcontainer.