Skip to content
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

add dry-run support to run command #10404

Merged
merged 1 commit into from
Mar 27, 2023
Merged

Conversation

glours
Copy link
Contributor

@glours glours commented Mar 24, 2023

What I did
Add dry-run support for the run command

Related issue
https://docker.atlassian.net/browse/ENV-66

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

@glours glours self-assigned this Mar 24, 2023
@glours glours requested review from a team, nicksieger, ndeloof, StefanScherer, ulyssessouza, milas and laurazard and removed request for a team March 24, 2023 17:25
@codecov
Copy link

codecov bot commented Mar 24, 2023

Codecov Report

Patch coverage has no change and project coverage change: -41.28 ⚠️

Comparison is base (0b6133f) 60.13% compared to head (72a61c0) 18.85%.

Additional details and impacted files
@@             Coverage Diff             @@
##               v2   #10404       +/-   ##
===========================================
- Coverage   60.13%   18.85%   -41.28%     
===========================================
  Files         104      101        -3     
  Lines        9005     8919       -86     
===========================================
- Hits         5415     1682     -3733     
- Misses       3023     7050     +4027     
+ Partials      567      187      -380     
Impacted Files Coverage Δ
pkg/api/dryrunclient.go 0.00% <0.00%> (ø)

... and 79 files with indirect coverage changes

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@ndeloof ndeloof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure to understand what you try to do here in ContainerCreate. Return existing container as a successful create if one existed ? But then this is not what would happen if user removes --dry-run flag as we will then create a second container for service

pkg/api/dryrunclient.go Outdated Show resolved Hide resolved
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@milas milas merged commit 67c9ecb into docker:v2 Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants