compose/cmd
Guillaume Lours 7e3aa869ec fix(port): preserve tie order for dual-stack port publishers
`docker compose port SERVICE PORT` picks the first matching publisher
as its answer, but containerPublishers()'s sort.Slice does not
guarantee tie order, so a dual-stack publish (same target port on
both an IPv4 and an IPv6 address) could non-deterministically return
either one. Switch to sort.SliceStable to preserve the daemon's
original order for ties.

Also drops a dead length check and a duplicated host:port formatter.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-09-14 10:48:03 +02:00
..
cmdtrace feat(tracing): surface otel shutdown errors via --debug 2026-09-02 17:12:12 +02:00
compatibility modernize some code 2026-02-12 15:31:35 +01:00
compose fix(port): preserve tie order for dual-stack port publishers 2026-09-14 10:48:03 +02:00
display fix(display): reset the screen after degraded out-of-operation lines 2026-09-09 16:50:05 +02:00
formatter golangci-lint: enable perfsprint linter 2026-09-10 10:25:34 +02:00
prompt cmd/prompt: remove uses of github.com/AlecAivazis/survey/v2 2026-09-11 15:30:07 +02:00
main.go feat: add Docker Desktop Logs view hints and navigation shortcut 2026-04-10 15:26:08 +02:00