Coder powers secure, scalable development across key industries — automotive, finance, government, and technology — enabling faster builds, tighter compliance, and seamless AI adoption in enterprise-grade cloud environments.
The workspace_folder attribute must specify the location of the dev
container's workspace and should point to a valid project folder containing a
devcontainer.json file.
Tip
Consider using the git-clone
module to ensure your repository is cloned into the workspace folder and ready
for automatic startup.
Enable Dev Containers Integration
To enable the dev containers integration in your workspace, you must set the
CODER_AGENT_DEVCONTAINERS_ENABLE environment variable to true in your
workspace container:
This environment variable is required for the Coder agent to detect and manage
dev containers. Without it, the agent will not attempt to start or connect to
dev containers even if the coder_devcontainer resource is defined.
Complete Template Example
Here's a simplified template example that enables the dev containers
integration: