- Docker
- Visual Studio Code or devcontainer-cli
Dev Containers: Open Folder in Container
Dev Containers: Rebuild Container
The CLI requires Node.js 14.17.0 or later. TIP: Use
nvm install node --reinstall-packages-from=$(nvm current)
npm install -g @devcontainers/cli
devcontainer up --workspace-folder . --remove-existing-container
devcontainer exec --workspace-folder . pwsh
If you have made changes to the devcontainer setttings, then run the following:
devcontainer up --workspace-folder . --remove-existing-container
If you have made changes to the Dockerfile, then run the following:
devcontainer up --workspace-folder . --remove-existing-container --build-no-cache
You can also use your personal dotfiles repository. Here I use my own personal dotfiles repository.
devcontainer up --workspace-folder . --remove-existing-container --dotfiles-repository https://github.com/oysteinje/dotfiles.git