Search code examples
visual-studio-codevscode-devcontainer

Launch VSCode into devcontainer session


It appears that the only way to run devcontainers locally is by following these steps:

  1. Open your codebase in VSCode
  2. Reopen VSCode / The application in a devcontainer via command or the "Reopen in Container" popup

I would like to skip step 1 and launch VSCode directly into a container session. Is this currently possible?


Solution

  • 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 .