fix(.devcontainer): start docker and install devcontainer CLI (#18621)

This change starts the Docker daemon in the devcontainer and install
`@devcontainers/cli`.
This commit is contained in:
Mathias Fredriksson
2025-06-26 20:17:59 +00:00
committed by GitHub
parent 73879056f9
commit 7b0b6498fb
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -56,5 +56,6 @@
// See: https://github.com/devcontainers/spec/issues/132
"source=${localEnv:HOME},target=/mnt/home/coder,type=bind,readonly"
],
"postCreateCommand": "./.devcontainer/postCreateCommand.sh"
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
"postStartCommand": "sudo service docker start"
}
+5
View File
@@ -1,5 +1,9 @@
#!/bin/sh
install_devcontainer_cli() {
npm install -g @devcontainers/cli
}
install_ssh_config() {
echo "🔑 Installing SSH configuration..."
rsync -a /mnt/home/coder/.ssh/ ~/.ssh/
@@ -49,6 +53,7 @@ personalize() {
fi
}
install_devcontainer_cli
install_ssh_config
install_dotfiles
personalize