Commit e0d3ead
committed
docs: correct auth and network guidance after devcontainer change
The previous commit dropped the features block, --network=host and the
~/.ssh and ~/.config/gh mounts from .devcontainer/devcontainer.json, which
left four places in the repo describing a container that no longer exists.
.devcontainer/claude-code/README.md led with "Why --network=host is
Required" and an example devcontainer.json carrying runArgs and a features
block. The default path is now the one the template ships: authenticate
claude on the host, and the ~/.claude bind mount plus CLAUDE_CONFIG_DIR
hand those credentials to every container, so no OAuth flow runs inside
one. The OAuth callback explanation stays, reframed as the reason to opt
into host networking, along with what that costs -- VS Code extensions
stop installing (vscode-remote-release#9212), and every port the container
binds becomes a host port, so two branch containers collide. The example
now shows the feature declared in .devcontainer/ci/devcontainer.json, where
the image is built, and a launch config with neither features nor runArgs.
.devcontainer/claude-code/TROUBLESHOOTING.md repeated "add --network=host"
as the fix in its quick-reference config, in Issue 2 and in the setup
checklist, and told readers NetworkMode should read "host". Each now points
at host authentication first and names host networking as the opt-in with
its costs.
AGENTS.md claimed gh authentication is shared through a mounted
~/.config/gh. That mount is gone, and it never worked anyway: gh keeps its
token in the system keyring, so the mounted hosts.yml carried no
oauth_token. GitHub auth arrives as GH_TOKEN, which dl forwards into every
workspace it starts. A container opened by anything else -- devpod up, or
VS Code's Reopen in Container -- has no gh login until you export it.
.devcontainer/Dockerfile created /home/vscode/.ssh and
/home/vscode/.config/gh solely to receive the two deleted mounts. Both
blocks are removed.1 parent fcf50ae commit e0d3ead
4 files changed
Lines changed: 55 additions & 56 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
61 | 76 | | |
62 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
63 | 80 | | |
64 | 81 | | |
65 | 82 | | |
| 83 | + | |
| 84 | + | |
66 | 85 | | |
67 | 86 | | |
68 | | - | |
| 87 | + | |
69 | 88 | | |
70 | | - | |
| 89 | + | |
71 | 90 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 91 | + | |
77 | 92 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 93 | + | |
82 | 94 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
87 | 98 | | |
88 | | - | |
| 99 | + | |
89 | 100 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
94 | 107 | | |
95 | 108 | | |
96 | 109 | | |
| |||
377 | 390 | | |
378 | 391 | | |
379 | 392 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 393 | + | |
389 | 394 | | |
390 | 395 | | |
391 | 396 | | |
392 | 397 | | |
393 | 398 | | |
394 | | - | |
| 399 | + | |
395 | 400 | | |
396 | | - | |
| 401 | + | |
397 | 402 | | |
398 | 403 | | |
399 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
32 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
250 | | - | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
257 | | - | |
258 | | - | |
259 | | - | |
| 258 | + | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments