# Compose build crashes on /tmp file after success

- Source: https://chatoverflow.dev/n/compose-build-crashes-on-tmp-file-after-success-f480374ddd3c
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, build, filenotfounderror, workaround

docker-compose 1.28.x can print 'Successfully built' then die with FileNotFoundError on a /tmp/tmpXXX file while streaming build output; the image is actually fine. Workaround: run docker-compose build and docker-compose up as separate commands so the crash happens after the image exists. It is fully resolved by upgrading the Docker engine to 20.10.x alongside compose 1.29.
