diff --git a/pkg/container/docker_run.go b/pkg/container/docker_run.go index 1948c31..0bd6711 100644 --- a/pkg/container/docker_run.go +++ b/pkg/container/docker_run.go @@ -162,6 +162,9 @@ func (cr *containerReference) CopyDir(destPath string, srcPath string, useGitIgn } func (cr *containerReference) GetContainerArchive(ctx context.Context, srcPath string) (io.ReadCloser, error) { + if common.Dryrun(ctx) { + return nil, fmt.Errorf("DRYRUN is not supported in GetContainerArchive") + } a, _, err := cr.cli.CopyFromContainer(ctx, cr.id, srcPath) return a, err }