From f62c8db559c8a5d643a0a9b5b0906e2db4df9342 Mon Sep 17 00:00:00 2001 From: Benjamin Aarsen Date: Tue, 16 Sep 2025 11:46:23 +0200 Subject: [PATCH] add initializecommand --- devcontainer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/devcontainer.json b/devcontainer.json index 7722e5b..7e12968 100644 --- a/devcontainer.json +++ b/devcontainer.json @@ -12,6 +12,7 @@ // "--pid=host", // Shares the host's PID namespace with the container "--privileged", // Gives the container full access to the host's devices and allows it to run with root privileges ], + "initializeCommand": "xhost +local:docker", // Allows the container to access the X server on the host e.g. to run Rviz and other GUI tools "workspaceMount": "source=${localWorkspaceFolder},target=/home/ubuntu/${localWorkspaceFolderBasename},type=bind", "workspaceFolder": "/home/ubuntu/${localWorkspaceFolderBasename}", "remoteEnv": {