From b74ec45782635c18bb56620849123a96a514ad4a Mon Sep 17 00:00:00 2001 From: Sascha Hagedorn Date: Sun, 30 Jun 2024 07:33:46 +0000 Subject: [PATCH] privileged mode and usb mount for devcontainer --- .devcontainer/devcontainer.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7aaee1fda15..201e2f2d001 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -17,17 +17,19 @@ ] } }, - "postCreateCommand": "${containerWorkspaceFolder}/.devcontainer/setup.sh ${containerWorkspaceFolder}" - + "postCreateCommand": "${containerWorkspaceFolder}/.devcontainer/setup.sh ${containerWorkspaceFolder}", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, - // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Configure tool-specific properties. // "customizations": {}, - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" + // "remoteUser": "root", + "runArgs": [ + "--privileged" + ], + "mounts": [ + "type=bind,source=/dev/bus/usb,target=/dev/bus/usb" + ] }