File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 33
33
// "forwardPorts": [],
34
34
35
35
// Use 'postCreateCommand' to run commands after the container is created.
36
- "postCreateCommand" : " pip3 install --user -r requirements-dev.txt && pre-commit install" ,
36
+ // 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" ,
37
41
38
42
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
39
43
"remoteUser" : " vscode"
You can’t perform that action at this time.
0 commit comments