Skip to content

Autoware Core Docker installation guide#

Prerequisites#

ItemRequirement
DockerDocker 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#

ImageDescription
ghcr.io/autowarefoundation/autoware:core-jazzyThis is a runtime image. It contains the compiled Autoware Core packages and their runtime dependencies only.
ghcr.io/autowarefoundation/autoware:core-devel-jazzyThis is a develop image. It contains the build dependencies and the compiled Autoware Core packages in /opt/autoware.
ghcr.io/autowarefoundation/autoware:core-cuda-jazzyThis 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-jazzyThis 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#

  1. Pull the Docker image you want to use. The following command is for core-jazzy:

    docker pull ghcr.io/autowarefoundation/autoware:core-jazzy
    
  2. Start a container from the image.

    docker run --rm -it --net host ghcr.io/autowarefoundation/autoware:core-jazzy
    

    For a core CUDA image, add --gpus all to give the container access to the GPU.

    The entrypoint tries to enable multicast on lo and to apply the kernel settings for DDS. Without --privileged, these steps fail and the entrypoint prints [entrypoint] WARN lines. With --net host, the container uses the network of the host. In this case, apply the DDS settings and enable multicast for lo on the host, or add --privileged to the command.

    The container opens a Bash shell. In the runtime image, the entrypoint sources /opt/ros/<distro>/setup.bash and /opt/autoware/setup.bash. In the develop image, run source /opt/autoware/setup.bash yourself 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.