

When you run a container with the basic syntax ‘docker container run’, the Docker will randomly generate a name for each container as you can see in the below: $ sudo docker container ls -a It's recommended to preface the docker run command with sudo or the other workaround without sudo.

Note: From the Docker version 1.13, due to the new syntax of its release, we use ‘docker container run’ instead of ‘docker run’. This message shows that your installation appears to be working correctly. For example: $ sudo docker run bf756fb1ae65 The next time you run that image, it is faster than the first one and you can use the IMAGE-ID instead of image name. Hello-world latest bf756fb1ae65 7 months ago 13.3kB Truongnh1992/go latest 57b4af3567ac 3 months ago 7.41MB Nginx latest 4bb46517cac3 2 weeks ago 133MBĪlpine latest a24bb4013296 3 months ago 5.57MB Ubuntu latest 4e2eef94cd6b 9 days ago 73.9MB See the rendering documentation for information.Īny issues or doubts related with this topic can be posted in the CARLA forum.Output: REPOSITORY TAG IMAGE ID CREATED SIZE OpenGL requires no configuration if you are running CARLA on a machine without a display, however you will need to perform some extra steps to do the same using Vulkan prior to CARLA 0.9.12. GPUs: You can choose to use all GPUs with -gpus all, or target specific GPUs with -gpus '"device=,"'.If you prefer to map specific ports on the host machine to container ports, use the flag -p. Networking: The -net=host argument will allow the container to share the host's entire network.The above commands use some Docker flags that can be configured according to your needs:

To run CARLA using OpenGL: docker run -e DISPLAY=$DISPLAY -net=host -gpus all -runtime=nvidia carlasim/carla: /bin/bash CarlaUE4.sh -opengl See the rendering documentation for information on running with Vulkan in off-screen mode.

This command will allow you to run the CARLA image with Vulkan as long as your machine has a display. To run CARLA using Vulkan: sudo docker run -privileged -gpus all -net=host -e DISPLAY=$DISPLAY -e SDL_VIDEODRIVER=x11 -v /tmp/.X11-unix:/tmp/.X11-unix:rw carlasim/carla:0.9.11 /bin/bash. To run CARLA in off-screen mode: sudo docker run -privileged -gpus all -net=host -v /tmp/.X11-unix:/tmp/.X11-unix:rw carlasim/carla:0.9.12 /bin/bash. To run CARLA with a display: sudo docker run -privileged -gpus all -net=host -e DISPLAY=$DISPLAY carlasim/carla:0.9.12 /bin/bash. 0.9.7+ supports both Vulkan and OpenGL.To pull the image, run one of the following commands: # Pull the latest imageĭifferent versions of CARLA support different graphics APIs which can affect the conditions in which the Docker image can run: The latest image refers to the most recent packaged release. You can pull either the latest CARLA image or a specific release version. Follow this guide to add users to the docker sudo group. Customizing maps: Weather and landscapeĭocker requires sudo to run.Customizing maps: Traffic lights and signs.
