#upgrade setup to the latest openclaw version

1 messages ยท Page 1 of 1 (latest)

tiny wadi
#

In a setup where docker-compose.yml has build: . for the gateway service, what is the correct upgrade procedure? Is it docker compose up -d --build to rebuild from source, or docker pull ghcr.io/openclaw/openclaw:latest followed by recreating the container? We want to make sure we're upgrading the right way. running 2026.4.20

gleaming doveBOT
pastel sleetBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

gleaming doveBOT
analog cragBOT
#

If your docker-compose.yml for openclaw-gateway has build: ., the upgrade path is:

  1. update the source checkout to the version you want
  2. rebuild + recreate the container

So yes, for that setup, the right move is basically:

git pull   # or git checkout <tag>
docker compose up -d --build

docker pull ghcr.io/openclaw/openclaw:latest is the right path only if you are running from a prebuilt image and treating image: as the source of truth. If you keep build: ., pulling GHCR is not the main upgrade mechanism.

My recommendation: pick one model and keep it consistent.

  • Source-built install: update repo, then docker compose up -d --build