Docs/build_docker.md
Linux users can pull an image based on a CARLA release to run in a Docker container. This is useful for users who:
You will need to have installed:
sudo commandsnvidia-docker2 package by following the instructions here.Pull the image with the following command:
docker pull carlasim/carla:0.10.0
Running the Docker image without display:
docker run \
--runtime=nvidia \
--net=host \
--env=NVIDIA_VISIBLE_DEVICES=all \
--env=NVIDIA_DRIVER_CAPABILITIES=all \
carlasim/carla:0.10.0 bash CarlaUnreal.sh -RenderOffScreen -nosound
Running the Docker image with a display:
To run the Docker image with a display, you will need the x11 display protocol:
docker run \
--runtime=nvidia \
--net=host \
--user=$(id -u):$(id -g) \
--env=DISPLAY=$DISPLAY \
--env=NVIDIA_VISIBLE_DEVICES=all \
--env=NVIDIA_DRIVER_CAPABILITIES=all \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
carlasim/carla:0.10.0 bash CarlaUnreal.sh -nosound