Files
compose/pkg
Michael Irwin 4915b775ee fix: only pass ConsoleSize to ExecAttach when TTY is enabled
The moby/moby client (v0.2.2) validates that ConsoleSize is zero when
TTY is disabled, returning "console size is only supported when TTY is
enabled" otherwise. Previously, ConsoleSize was populated unconditionally
from GetTtySize(), which returns real terminal dimensions when Compose is
run interactively — causing post_start hooks to fail for services without
`tty: true`.

Fix by only reading and passing the console size when service.Tty is true.

Signed-off-by: Michael Irwin <[email protected]>

Resolves #13615
2026-03-04 19:53:35 +01:00
..
2026-02-12 15:31:35 +01:00
2025-05-27 15:16:50 +02:00
2026-02-12 15:31:35 +01:00