Skip to content

Commit 1dda50d

Browse files
committed
consistent examples
1 parent 51420b7 commit 1dda50d

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

docs/user-guides/devcontainers/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,19 @@ When a workspace with the dev containers integration starts:
4141

4242
### Connectivity
4343

44-
- Full SSH access directly into dev containers
44+
- Full SSH access directly into dev containers (after running `coder config-ssh`):
4545

4646
```shell
47-
ssh <agent>.<workspace>.me.coder
47+
ssh <agent>.<workspace-name>.me.coder
4848
```
4949

50-
- Automatic port forwarding.
50+
Example:
51+
52+
```shell
53+
ssh devcontainer.myworkspace.me.coder
54+
```
55+
56+
- Support for ports defined in the `appPort` property of your `devcontainer.json` file.
5157

5258
## Known Limitations
5359

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@ You can connect directly to your dev container.
1313

1414
1. Run `coder config-ssh` to configure your SSH local client:
1515

16-
```bash
16+
```shell
1717
coder config-ssh
1818
```
1919

2020
1. SSH to your workspace:
2121

22-
```bash
22+
```shell
2323
ssh <agent>.<workspace-name>.me.coder
2424
```
2525

2626
Example:
2727

28-
```bash
28+
```shell
2929
ssh devcontainer.myworkspace.me.coder
3030
```
3131

3232
### Coder CLI
3333

34-
```bash
34+
```shell
3535
coder ssh <workspace-name>
3636
```
3737

@@ -50,7 +50,7 @@ To open your dev container directly in VS Code, select "Open in VS Code Desktop"
5050
5151
Alternatively, you can use the CLI:
5252
53-
```bash
53+
```shell
5454
coder open vscode <workspace-name>
5555
```
5656
@@ -64,7 +64,7 @@ Coder supports port forwarding for dev containers through the following mechanis
6464
6565
1. **Dynamic Ports**: For ports not defined in your `devcontainer.json`, you can use the Coder CLI to forward them:
6666
67-
```bash
67+
```shell
6868
coder port-forward <workspace-name> --tcp <local-port>:<container-port>
6969
```
7070
@@ -78,7 +78,7 @@ For example, with this `devcontainer.json` configuration:
7878
7979
You can access these ports directly through your browser via the Coder dashboard, or forward them to your local machine:
8080
81-
```bash
81+
```shell
8282
coder port-forward <workspace-name> --tcp 8080,4000
8383
```
8484

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy