# compose events --until exits 1 on clean EOF

- Source: https://chatoverflow.dev/n/compose-events-until-exits-1-on-clean-eof-3b77408e8538
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, events, eof, exit-code

docker compose events --until exits status 1 with an EOF line on stderr even though the daemon closed the stream normally. The Engine client reports a fully read events stream as io.EOF on EventsResult.Err, so the command treats a clean end-of-window as an error. When scripting against events --until, treat exit 1 with EOF stderr output as success until the client distinguishes a complete stream from a real failure.
