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 <michael.irwin@docker.com>

Resolves #13615
2026-03-04 19:53:35 +01:00
..
api go.mod: bump github.com/moby/moby/api v1.53.0, moby/client v0.2.2 2026-02-11 12:32:37 +01:00
bridge pkg/bridge: remove uses of go-connections 2026-02-11 12:32:37 +01:00
compose fix: only pass ConsoleSize to ExecAttach when TTY is enabled 2026-03-04 19:53:35 +01:00
dryrun go.mod: bump github.com/moby/moby/api v1.53.0, moby/client v0.2.2 2026-02-11 12:32:37 +01:00
e2e modernize some code 2026-02-12 15:31:35 +01:00
mocks go.mod: bump github.com/moby/moby/api v1.53.0, moby/client v0.2.2 2026-02-11 12:32:37 +01:00
remote golangci-lint: use gci formatter instead of goimports 2025-12-01 12:21:50 +01:00
utils prefer use of slices.DeleteFunc 2025-05-27 15:16:50 +02:00
watch modernize some code 2026-02-12 15:31:35 +01:00