Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit06d714c

Browse files
committed
update features; add personal devcontainer file
1 parentec77a25 commit06d714c

File tree

1 file changed

+41
-33
lines changed

1 file changed

+41
-33
lines changed

‎docs/user-guides/devcontainers/index.md

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@ The dev containers integration enables seamless creation and management of dev c
44
This feature leverages the[`@devcontainers/cli`](https://github.com/devcontainers/cli) and[Docker](https://www.docker.com)
55
to provide a streamlined development experience.
66

7-
This implementation is different from the existing
8-
[Envbuilder-based dev containers](../../admin/templates/managing-templates/devcontainers/index.md)
9-
offering.
10-
117
##Prerequisites
128

13-
- Coder version 2.22.0 or later
14-
- Coder CLI version 2.22.0 or later
9+
- Coder version 2.24.0 or later
10+
- Coder CLI version 2.24.0 or later
1511
- A template with:
16-
- Dev containers integration enabled
1712
- A Docker-compatible workspace image
1813
- Appropriate permissions to execute Docker commands inside your workspace
1914

@@ -30,50 +25,63 @@ which allows for extensive customization of your development setup.
3025
When a workspace with the dev containers integration starts:
3126

3227
1. The workspace initializes the Docker environment.
33-
1. The integration detects repositories with a`.devcontainer` directory or a
34-
`devcontainer.json` file.
35-
1. The integration builds and starts the dev container based on the
36-
configuration.
28+
1. The integration detects repositories with a`.devcontainer` directory or a`devcontainer.json` file.
29+
1. The integration builds (or rebuilds) and starts the dev container based on the configuration.
3730
1. Your workspace automatically detects the running dev container.
31+
1. If the configuration changes, the workspace prompts you to rebuild the dev container.
3832

3933
##Features
4034

41-
###Available Now
35+
###Detection & Lifecycle
36+
37+
- Automatic discovery of`.devcontainer` configs.
38+
- Change detection with rebuild prompts.
39+
- Rebuild containers with one click from the Coder dashboard or from the CLI.
40+
41+
###Connectivity
42+
43+
- Full SSH access directly into dev containers (`coder ssh --container ...`).
44+
- Automatic port forwarding based on`appPort`,`forwardPorts`, or`docker-compose.yml`.
4245

43-
- Automatic dev container detection from repositories
44-
- Seamless dev container startup during workspace initialization
45-
- Integrated IDE experience in dev containers with VS Code
46-
- Direct service access in dev containers
47-
- Limited SSH access to dev containers
46+
##Personal overrides
4847

49-
###Coming Soon
48+
To add tools or tweaks that enhance your personal experience, create a`devcontainer.local.json` file in the same
49+
directory as the project’s`devcontainer.json`:
5050

51-
- Dev container change detection
52-
- On-demand dev container recreation
53-
- Support for automatic port forwarding inside the container
54-
- Full native SSH support to dev containers
51+
```jsonc
52+
{
53+
"extends":"./devcontainer.json",
54+
"features": {
55+
"ghcr.io/devcontainers/features/node": {"version":"20" }
56+
},
57+
"postStartCommand":"npm i -g tldr"
58+
}
59+
```
60+
61+
Add the file name to your project's`.gitignore` or to your
62+
[global exclude file](https://docs.github.com/en/get-started/git-basics/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer).
5563

5664
##Comparison with Envbuilder-based Dev Containers
5765

58-
| Feature| Dev Containers(Early Access)| Envbuilder Dev Containers|
66+
| Feature| Dev Containers| Envbuilder Dev Containers|
5967
|----------------|----------------------------------------|----------------------------------------------|
6068
| Implementation| Direct`@devcontainers/cli` and Docker| Coder's Envbuilder|
6169
| Target users| Individual developers| Platform teams and administrators|
6270
| Configuration| Standard`devcontainer.json`| Terraform templates with Envbuilder|
6371
| Management| User-controlled| Admin-controlled|
6472
| Requirements| Docker access in workspace| Compatible with more restricted environments|
6573

66-
Choose the appropriate solution based on your team's needs and infrastructure
67-
constraints. For additional details on Envbuilder's dev container support, see
68-
the
74+
Choose the appropriate solution based on your team's needs and infrastructure constraints.
75+
For additional details on Envbuilder's dev container support, see the
6976
[Envbuilder devcontainer spec support documentation](https://github.com/coder/envbuilder/blob/main/docs/devcontainer-spec-support.md).
7077

78+
##Known Limitations
79+
80+
Currently, dev containers are not compatible with the[prebuilt workspaces](../../admin/templates/extending-templates/prebuilt-workspaces.md).
81+
82+
If your template allows for prebuilt workspaces, do not select a prebuilt workspace if you plan to use a dev container.
83+
7184
##Next Steps
7285

73-
- Explore the[dev container specification](https://containers.dev/) to learn
74-
more about advanced configuration options
75-
- Read about[dev container features](https://containers.dev/features) to
76-
enhance your development environment
77-
- Check the
78-
[VS Code dev containers documentation](https://code.visualstudio.com/docs/devcontainers/containers)
79-
for IDE-specific features
86+
-[Dev container specification](https://containers.dev/)
87+
-[VS Code dev containers documentation](https://code.visualstudio.com/docs/devcontainers/containers)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp