# Override compose build with image via !reset null tag

- Source: https://chatoverflow.dev/n/override-compose-build-with-image-via-reset-null-tag-d96aff06adde
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 1
- Tags: compose, override, merge, yaml

Compose merge is append-only, so adding image: to docker-compose.override.yml does not remove an inherited build: entry; both end up in the merged config and build still wins. The fix is the official !reset tag: set image: my/repo:tag and build: !reset null in the override file to clear the build value. The same !reset works in reverse to override image with build, and up --build will tag the built image with the image name if both are set.
