8000 leftover ea language · coder/coder@e83d564 · GitHub
[go: up one dir, main page]

Skip to content

Commit e83d564

Browse files
committed
leftover ea language
1 parent 8f5e613 commit e83d564

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

docs/user-guides/devcontainers/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,4 @@ If your template allows for prebuilt workspaces, do not select a prebuilt worksp
8585

8686
- [Dev Container specification](https://containers.dev/)
8787
- [VS Code dev containers documentation](https://code.visualstudio.com/docs/devcontainers/containers)
88+
- [Choose an approach to Dev Containers](../../admin/templates/extending-templates/dev-containers-envbuilder.md)

docs/user-guides/devcontainers/working-with-dev-containers.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ visual representation of the running environment:
55

66
![Dev container integration in Coder dashboard](../../images/user-guides/devcontainers/devcontainer-agent-ports.png)
77

8+
This page assumes you have a [dev containers integration](./index.md) ready.
9+
810
## SSH Access
911

1012
You can SSH into your dev container directly using the Coder CLI:
@@ -42,31 +44,15 @@ work.
4244

4345
## Port Forwarding
4446

45-
During the early access phase, port forwarding is limited to ports defined via
46-
[`appPort`](https://containers.dev/implementors/json_reference/#image-specific)
47-
in your `devcontainer.json` file.
48-
49-
> [!NOTE]
50-
>
51-
> Support for automatic port forwarding via the `forwardPorts` property in
52-
> `devcontainer.json` is planned for a future release.
53-
54-
For example, with this `devcontainer.json` configuration:
55-
56-
```json
57-
{
58-
"appPort": ["8080:8080", "4000:3000"]
59-
}
60-
```
61-
62-
You can forward these ports to your local machine using:
47+
Coder automatically forwards any port declared in `appPort`, `forwardPorts`,
48+
or exposed by `docker-compose.yml`.
49+
Use the dashboard to open a forwarded port, or the CLI:
6350

6451
```console
6552
coder port-forward my-workspace --tcp 8080,4000
6653
```
6754

68-
This forwards port 8080 (local) -> 8080 (agent) -> 8080 (dev container) and port
69-
4000 (local) -> 4000 (agent) -> 3000 (dev container).
55+
If you need a port that isn’t declared, pass it explicitly to `coder port-forward`.
7056

7157
## Dev Container Features
7258

0 commit comments

Comments
 (0)
0