#restart docker server
1 messages · Page 1 of 1 (latest)
docker compose … restart openclaw-gateway will not apply volume/mount changes. It just stops/starts the existing container, so if openclaw_home wasn’t mounted before, it still won’t be after a restart.
What you want is to recreate the container with the (docker-compose + extra) config:
docker compose -f ./openclaw/docker-compose.yml -f ./openclaw/docker-compose.extra.yml up -d --force-recreate openclaw-gateway
# (or: docker compose ... rm -sf openclaw-gateway && docker compose ... up -d)
Quick checks to confirm what Docker thinks the config/mounts are:
docker compose -f ./openclaw/docker-compose.yml -f ./openclaw/docker-compose.extra.yml config | sed -n '/openclaw-gateway:/,/^[^ ]/p'
docker inspect openclaw-gateway --format '{{json .Mounts}}' | jq .
Also watch out for a common gotcha: if you run compose from a different directory/project name than the one that originally created the container, you might be restarting a different container than you think. If that’s possible in your setup, add an explicit project name: