diff --git a/src/base-alpine/.devcontainer/devcontainer.json b/src/base-alpine/.devcontainer/devcontainer.json index 024879fbf2..767bea4592 100644 --- a/src/base-alpine/.devcontainer/devcontainer.json +++ b/src/base-alpine/.devcontainer/devcontainer.json @@ -19,8 +19,9 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "uname -a", - + // allow jetbrains IDE read self mount directory. + "postCreateCommand": "git config --global --add safe.directory /IdeaProjects/*", + // Replace when using a ptrace-based debugger like C++, Go, and Rust // "runArgs": [ "--init", "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], diff --git a/src/base-debian/.devcontainer/devcontainer.json b/src/base-debian/.devcontainer/devcontainer.json index 46fd717a23..d76926d803 100644 --- a/src/base-debian/.devcontainer/devcontainer.json +++ b/src/base-debian/.devcontainer/devcontainer.json @@ -32,6 +32,10 @@ // "ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx", // }, // + + // allow jetbrains IDE read self mount directory. + "postCreateCommand": "git config --global --add safe.directory /IdeaProjects/*", + // 3. Do one of the following depending on your scenario: // * When using GitHub Codespaces and/or Remote - Containers: // 1. Start the container diff --git a/src/base-ubuntu/.devcontainer/devcontainer.json b/src/base-ubuntu/.devcontainer/devcontainer.json index d6b7e7040f..3be721d3fc 100644 --- a/src/base-ubuntu/.devcontainer/devcontainer.json +++ b/src/base-ubuntu/.devcontainer/devcontainer.json @@ -20,7 +20,8 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "uname -a", + // allow jetbrains IDE read self mount directory. + "postCreateCommand": "git config --global --add safe.directory /IdeaProjects/*", // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode"