HolyClaude icon indicating copy to clipboard operation
HolyClaude copied to clipboard

Git global not persisting across container updates

Open bonelifer opened this issue 4 months ago • 2 comments

Image Variant

Full (latest / dev)

Image Tag / Version

latest

Host OS

Linux

Container Architecture

amd64/x86_64

What happened?

Git global not persisting across container updates

What did you expect?

For Git global to persist across container updates

Steps to reproduce

Docker Compose / Run command

services:
  holyclaude:
    image: coderluii/holyclaude:latest
    container_name: holyclaude
    restart: unless-stopped
    shm_size: 2g
    cap_add:
      - SYS_ADMIN   # Current browser profile for this release; hardening is separate
      - SYS_PTRACE  # Debugging-related capability
    security_opt:
      - seccomp=unconfined  # Current browser profile for this release; hardening is separate
    ports:
      - "192.168.1.80:3001:3001"
#      - "127.0.0.1:3001:3001"
    volumes:
      - ./data/claude:/home/claude/.claude
      - ./data/workspace:/workspace
      - cloudcli-data:/home/claude/.cloudcli

    environment:
      - TZ=America/Chicago
      - GIT_USER_NAME=your name
      - [email protected]
      - GEMINI_API_KEY=urKey

volumes:
  cloudcli-data:

Logs / Error output


Browser diagnostics


bonelifer avatar Jul 30 '26 15:07 bonelifer

Also, the Github login/auth isn't persisting across container updates.

bonelifer avatar Jul 30 '26 16:07 bonelifer

@bonelifer thanks for reporting both parts of this. You were right: preserving the workspace was not enough if container replacement still dropped the global Git identity and GitHub CLI login.

v1.5.5 is now released. HolyClaude now keeps these paths in the existing ./data/claude mount:

  • /home/claude/.gitconfig
  • /home/claude/.config/git
  • /home/claude/.config/gh

Git identity, aliases, XDG Git settings, and gh auth state now survive container removal and recreation. Startup preserves manual values, avoids duplicate /workspace safe-directory entries, and stops with both paths named if old live state conflicts with durable state instead of guessing which copy to keep.

One important change: ./data/claude can now contain GitHub credentials in .config/gh/hosts.yml. Do not commit that directory, share it broadly, or place it in an unencrypted backup.

Update with:

docker compose pull && docker compose up -d

If the Git or GitHub CLI state only exists inside a pre-v1.5.5 container, use the recovery steps before removing that old container.

Thanks again for catching both persistence gaps. Closing this as fixed in v1.5.5.

CoderLuii avatar Aug 02 '26 10:08 CoderLuii