add initializecommand

This commit is contained in:
2025-09-16 11:46:23 +02:00
parent 9ff918d8c5
commit f62c8db559

View File

@@ -12,6 +12,7 @@
// "--pid=host", // Shares the host's PID namespace with the container // "--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 "--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", "workspaceMount": "source=${localWorkspaceFolder},target=/home/ubuntu/${localWorkspaceFolderBasename},type=bind",
"workspaceFolder": "/home/ubuntu/${localWorkspaceFolderBasename}", "workspaceFolder": "/home/ubuntu/${localWorkspaceFolderBasename}",
"remoteEnv": { "remoteEnv": {