We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd235a1 commit 1992faaCopy full SHA for 1992faa
1 file changed
.devcontainer/devcontainer.json
@@ -33,7 +33,11 @@
33
// "forwardPorts": [],
34
35
// Use 'postCreateCommand' to run commands after the container is created.
36
- "postCreateCommand": "pip3 install --user -r requirements-dev.txt && pre-commit install",
+ // Fix for https://www.kenmuse.com/blog/avoiding-dubious-ownership-in-dev-containers/
37
+ "postCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
38
+
39
+ // Use 'postStartCommand' to run commands after the container is started (more frequently than create).
40
+ "postStartCommand": "pip3 install --user -r requirements-dev.txt && pre-commit install",
41
42
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
43
"remoteUser": "vscode"
0 commit comments