mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
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> |
||
|---|---|---|
| .. | ||
| dryrunclient.go | ||