It appears that the only way to run devcontainers locally is by following these steps:
I would like to skip step 1 and launch VSCode directly into a container session. Is this currently possible?
According to this Issue you can call the code command with according arguments, e.g. from your project folder (on a Mac)
p=$(echo -n "$PWD"|xxd -p -c 256) && code --folder-uri "vscode-remote://dev-container+${p/[[:space:]]/}/workspace"
(where /workspace ist the remote workspace folder)
For more information see the issue.
This is now officially supported in the devcontainer CLI.
After installing the CLI, the project can be opened directly in a devcontainer using the command:
devcontainer open .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With