New Tool Radar

Local AI

How to Update LocalAI to a New Version with Docker

Pull the new LocalAI image and recreate the container so the update applies while your models and data stay in their volumes.

Schematic diagram with three steps: pull the new LocalAI Docker image, recreate the container with docker compose up, and open the web interface to confirm the new version.

Updating LocalAI in Docker is two commands, and the install docs give them directly. The key fact is that your models and data live in named volumes, not inside the container image — so replacing the image does not delete them.

Pull and recreate

docker compose pull
docker compose up -d

docker compose pull fetches the new image; docker compose up -d recreates the container with it. The docs say the Compose file keeps models, backends, settings and application data in four named volumes, so they stay when you recreate or upgrade the container.

Check before you trust the update

  1. Open http://localhost:8080 and confirm the web interface loads.
  2. Check the Models page lists the same models as before.
  3. Send one chat completion to confirm the model still answers.

Back up the volumes first if the update matters — a backup is cheap, a re-download of every model is not. And never run docker compose down -v during an update: the docs are explicit that it deletes the volumes, with all models and data.

Check What you should see If you do not see it
New image pulled docker compose pull fetches a newer image You are already on the latest image for your tag
Web UI loads http://localhost:8080 opens after the restart The container is still starting — wait and check docker compose ps
Models still listed The same models appear on the Models page A volume was deleted — restore from backup, do not re-download blindly

Expected result. We checked the LocalAI install docs for the docker compose pull and docker compose up -d upgrade steps, the four named volumes, and the down -v warning. We did not run Docker or LocalAI, so the update above is UNTESTED on this machine.

Limits

An update can change configuration names or default behaviour — read the release notes for your version before pulling. If you pinned an image tag such as a CUDA tag, pulling latest will not update it; pull the tag you actually use.

Sources

Sources checked 2026-11-28.

See all