From 4a06800d007ea04b4695b0b50eabeed7ded46da5 Mon Sep 17 00:00:00 2001 From: Niko Feith Date: Tue, 5 Mar 2024 16:03:32 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Edocker-compose.yaml=E2=80=9C=20=C3=A4n?= =?UTF-8?q?dern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit added support for Display --- docker-compose.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 2789079..e9915b8 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,10 +4,15 @@ services: build: . volumes: - ./src:/ros2_ws/src + - /tmp/.X11-unix:/tmp/.X11-unix networks: - ros_network tty: true stdin_open: true + environment: + - DISPLAY=$DISPLAY + devices: + - /dev/dri:/dev/dri networks: ros_network: