Create ~/.anthropic before container start if it doesn't exist
Podman refuses to bind-mount a path that doesn't exist on the host. On a fresh machine ~/.anthropic won't exist until claude is first run. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
699087f08c
commit
0b48d9bd21
1 changed files with 3 additions and 0 deletions
|
|
@ -68,6 +68,9 @@ fi
|
|||
# ── Stop stale container ─────────────────────────────────────────────────
|
||||
"\$RUNTIME" rm -f "\$CONTAINER_NAME" 2>/dev/null || true
|
||||
|
||||
# ── Ensure ~/.anthropic exists (Claude Code stores auth/config here) ─────
|
||||
mkdir -p "\$HOME/.anthropic"
|
||||
|
||||
# ── Start agents container ───────────────────────────────────────────────
|
||||
# Mount project at the same absolute path so host and container paths match.
|
||||
# CS Core sets agent working dirs to host paths; the wrapper relays PWD.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue