-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support dry-run for cp command #10235
Conversation
2c11512
to
9dc6789
Compare
Codecov ReportBase: 72.79% // Head: 73.89% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## v2 #10235 +/- ##
==========================================
+ Coverage 72.79% 73.89% +1.10%
==========================================
Files 2 2
Lines 272 272
==========================================
+ Hits 198 201 +3
+ Misses 62 60 -2
+ Partials 12 11 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2b4ed0f
to
280b04f
Compare
return nil, moby.ContainerPathStat{}, ErrNotImplemented | ||
rc := io.NopCloser(strings.NewReader("")) | ||
if _, err := d.ContainerStatPath(ctx, container, srcPath); err != nil { | ||
return rc, moby.ContainerPathStat{}, fmt.Errorf(" %s Could not find the file %s in container %s", DRYRUN_PREFIX, srcPath, container) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to suggest s/file/path
but then realized this text comes from moby/moby
🙈
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
…oth way) Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
280b04f
to
fdc1738
Compare
Signed-off-by: Guillaume Lours 705411+glours@users.noreply.github.com
What I did
Add support of dry-run mode for
cp
commandRelated issue
https://docker.atlassian.net/browse/ENV-53
(not mandatory) A picture of a cute animal, if possible in relation to what you did