fix(docker): add HOME environment variable to docker-compose.full.yml (Closes #2269)

This commit is contained in:
曾文锋0668000834 2026-04-07 14:09:24 +08:00
parent 92a69cae80
commit ffa769f125
2 changed files with 11 additions and 3 deletions

View file

@ -10,6 +10,10 @@ services:
container_name: picoclaw-agent-full container_name: picoclaw-agent-full
profiles: profiles:
- agent - agent
environment:
# PicoClaw runs as root in container by default
# If running as non-root user, update these paths to match the user's home directory
- HOME=/root
volumes: volumes:
- ../config/config.json:/root/.picoclaw/config.json:ro - ../config/config.json:/root/.picoclaw/config.json:ro
- picoclaw-workspace:/root/.picoclaw/workspace - picoclaw-workspace:/root/.picoclaw/workspace
@ -30,6 +34,10 @@ services:
restart: unless-stopped restart: unless-stopped
profiles: profiles:
- gateway - gateway
environment:
# PicoClaw runs as root in container by default
# If running as non-root user, update these paths to match the user's home directory
- HOME=/root
volumes: volumes:
# Configuration file # Configuration file
- ../config/config.json:/root/.picoclaw/config.json:ro - ../config/config.json:/root/.picoclaw/config.json:ro

View file

@ -12,7 +12,7 @@ services:
#extra_hosts: #extra_hosts:
# - "host.docker.internal:host-gateway" # - "host.docker.internal:host-gateway"
volumes: volumes:
- ./data:/root/.picoclaw - ./data:/home/picoclaw/.picoclaw
entrypoint: ["picoclaw", "agent"] entrypoint: ["picoclaw", "agent"]
stdin_open: true stdin_open: true
tty: true tty: true
@ -31,7 +31,7 @@ services:
#extra_hosts: #extra_hosts:
# - "host.docker.internal:host-gateway" # - "host.docker.internal:host-gateway"
volumes: volumes:
- ./data:/root/.picoclaw - ./data:/home/picoclaw/.picoclaw
# ───────────────────────────────────────────── # ─────────────────────────────────────────────
# PicoClaw Launcher (Web Console + Gateway) # PicoClaw Launcher (Web Console + Gateway)
@ -52,4 +52,4 @@ services:
- "18800:18800" - "18800:18800"
- "18790:18790" - "18790:18790"
volumes: volumes:
- ./data:/root/.picoclaw - ./data:/home/picoclaw/.picoclaw