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:
Eli 2026-03-09 13:10:15 +01:00
commit 0b48d9bd21

View file

@ -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.