Skip to content

Commit 7b91c95

Browse files
Use more portable post-install command in devcontainer
Windows breaks 'initializeCommand' by running the command with 'cmd.exe' locally rather than trying to run it in the container. This is apparently what the command is supposed to do which is not what I realized originally, so changed it to postCreateCommand which specifically runs in the container as intended.
1 parent 1a37b36 commit 7b91c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// https://github.com/derickson2402/Dockerized-CAEN/issues
2525
// In this case, we are installing the tree command (even though it is
2626
// there by default, so this is not a useful example...):
27-
// "initializeCommand": "dnf update -y && dnf install -y tree",
27+
// "postCreateCommand": "dnf update -y && dnf install -y tree",
2828

2929
// Give us a pretty bash prompt (since VSCode is overriding shell)
3030
"remoteEnv": {

0 commit comments

Comments
 (0)