📦Dev Container
Also known as Development Container, devcontainer.json, Devcontainer
A container set up as a place to code. Every coder gets the same tools.
Think of it like
It is like a desk that is set up for you. Your tools are laid out before you sit down.
Example
A new hire at Jack's company opens the project in VS Code. It builds the dev container for her, and she runs the tests on her first morning with nothing installed by hand.
Why it matters
Definition
Example code
json
{
"name": "Shop app",
"image": "mcr.microsoft.com/devcontainers/go:1"
}Common mistake
Key takeaways
- 1For writing code. It holds tools, not the finished app.
- 2Lives with the code. The setup file sits in the project.
- 3Same for everyone. Every laptop gets the same tools.