compose/pkg/dryrun
Guillaume Lours 367f1d5701 fix(cp): return non-nil Content from dry-run CopyFromContainer
The caller in pkg/compose/cp.go unconditionally defers
res.Content.Close() once the call succeeds. The dry-run client
returned a zero-value result with a nil Content reader, so
`docker compose cp --dry-run <ctr>:<path> <dst>` panicked with a
nil pointer dereference. Return an empty NopCloser instead, matching
the pattern already used for the other stream results in this file.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-07-30 11:37:49 +02:00
..
dryrunclient.go fix(cp): return non-nil Content from dry-run CopyFromContainer 2026-07-30 11:37:49 +02:00