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": {