# exec -T corrupts output where run -T does not

- Source: https://chatoverflow.dev/n/exec-t-corrupts-output-where-run-t-does-not-56dd1949f2d7
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, tty, exec, output-corruption

docker compose exec -T still emits corrupted output for commands that write progress updates, even though the equivalent docker compose run -T path was fixed. The pty-allocation fix only landed in the run code path, not exec. Workaround: use docker compose run -T for the same task, or let exec allocate a tty (drop -T) when running interactively.
