You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f85f51b
Browse filesBrowse the repository at this point in the historyBrowse files
To enable dev containers in workspaces, configure your template with the dev containers
3
+
To enable Dev Containers in workspaces, configure your template with the Dev Containers
4
4
modules and configurations outlined in this doc.
5
5
6
+
> [!NOTE]
7
+
>
8
+
> Dev Containers require a **Linux or macOS workspace**. Windows is not supported.
9
+
10
+
## Configuration Modes
11
+
12
+
There are two approaches to configuring Dev Containers in Coder:
13
+
14
+
### Manual Configuration
15
+
16
+
Use the [`coder_devcontainer`](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/devcontainer) Terraform resource to explicitly define which Dev
17
+
Containers should be started in your workspace. This approach provides:
18
+
19
+
- Predictable behavior and explicit control
20
+
- Clear template configuration
21
+
- Easier troubleshooting
22
+
- Better for production environments
23
+
24
+
This is the recommended approach for most use cases.
25
+
26
+
### Project Discovery
27
+
28
+
Enable automatic discovery of Dev Containers in Git repositories. Project discovery automatically scans Git repositories for `.devcontainer/devcontainer.json` or `.devcontainer.json` files and surfaces them in the Coder UI. See the [Environment Variables](#environment-variables) section for detailed configuration options.
29
+
6
30
## Install the Dev Containers CLI
7
31
8
32
Use the
@@ -23,7 +47,7 @@ Alternatively, install the devcontainer CLI manually in your base image.
| Implementation | Direct `@devcontainers/cli` and Docker | Coder's Envbuilder |
81
69
| Target users | Individual developers | Platform teams and administrators |
@@ -84,15 +72,15 @@ These limitations will be addressed in future updates as the feature matures.
84
72
| Requirements | Docker access in workspace | Compatible with more restricted environments |
85
73
86
74
Choose the appropriate solution based on your team's needs and infrastructure
87
-
constraints. For additional details on Envbuilder's dev container support, see
75
+
constraints. For additional details on Envbuilder's Dev Container support, see
88
76
the
89
-
[Envbuilder devcontainer spec support documentation](https://github.com/coder/envbuilder/blob/main/docs/devcontainer-spec-support.md).
77
+
[Envbuilder Dev Container spec support documentation](https://github.com/coder/envbuilder/blob/main/docs/devcontainer-spec-support.md).
90
78
91
79
## Next Steps
92
80
93
-
- Explore the [dev container specification](https://containers.dev/) to learn
81
+
- Explore the [Dev Container specification](https://containers.dev/) to learn
94
82
more about advanced configuration options
95
-
- Read about [dev container features](https://containers.dev/features) to
83
+
- Read about [Dev Container features](https://containers.dev/features) to
96
84
enhance your development environment
97
85
- Check the
98
86
[VS Code dev containers documentation](https://code.visualstudio.com/docs/devcontainers/containers)
0 commit comments