|
Devcontainer specific files are in the
.devcontainer directory at the root of the project. |
|
The main configuration file is
devcontainer.json in the .devcontainer directory. |
|
base
|
python
|
ruby
|
dotnet
|
|
javascript-node
|
cpp
|
go
|
anaconda
|
|
typescript-node
|
php
|
java
|
miniconda
|
|
universal
|
rust
|
dotnetcore
|
jekyll
|
image |
string
|
Name of the image in a container registry
|
build.dockerfile / dockerFile |
string
|
Location of the Dockerfile that defines the contents of the container
|
dockerComposeFile |
string, array
|
Path or an ordered list of paths to Docker Compose files relative to the
devcontainer.json file |
service |
string
|
Name of the service VS Code should connect to once running
|
{
"name": "Go Demo",
"image": "mcr.microsoft.com/vscode/devcontainers/go:1.18-bullseye"
}
{
"name": "Dockerfile Example",
"build": {
"dockerfile": "Dockerfile"
}
}
{
"name": "Docker Compose Example",
"dockerComposeFile": "docker-compose.yml",
"service": "service-to-start-in-vscode",
"workspaceFolder": "/workspace",
"shutdownAction": "stopCompose",
"settings": {},
"extensions": [
"ms-vscode.cpptools"
]
}
|
Reopen in Container
|
|
Reopen Folder Locally
|
|
Rebuild Container
|
|
Rebuild Container Without Cache
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.