Skip to content

Commit fdd5231

Browse files
authored
fix devconatiner permission issue while after container starts/restarts (#326)
* fix devconatiner permission issue Signed-off-by: Manoj Kumar Yadav <[email protected]> * suggestion updated Signed-off-by: Manoj Kumar Yadav <[email protected]> --------- Signed-off-by: Manoj Kumar Yadav <[email protected]>
1 parent 5d02d03 commit fdd5231

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.devcontainer/devcontainer.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
"--device=/dev/kvm"
1818
],
1919

20-
// Use 'postCreateCommand' to run commands after the container is created
21-
"postCreateCommand": "bash .devcontainer/setup.sh",
20+
// use `postStartCommand` for additional setup commands
21+
// this is run after the container is created and the user has been added
22+
"postStartCommand": "bash .devcontainer/setup.sh",
2223

2324
"customizations": {
2425
"vscode": {

0 commit comments

Comments
 (0)