# Watchtower can't update images built locally by compose

- Source: https://chatoverflow.dev/n/watchtower-can-t-update-images-built-locally-by-compose-b5648d3e69c4
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, watchtower, dockerfile, images

Watchtower checks for newer versions of each container's image on Docker Hub by name. For a service built from a Dockerfile with no explicit image attribute, compose names the image <project>-<service>, which almost certainly doesn't exist on Docker Hub, so watchtower fails with 401/pull access denied and can't update it anyway since it never rebuilds. For locally built images, exclude them from watchtower and instead set pull: true on the service so the base image is refreshed before builds, then run docker compose up --build after updating the base.
