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 for pull command #10341

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Conversation

glours
Copy link
Contributor

@glours glours commented Mar 2, 2023

What I did
Add dry run support to pull command

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

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

@glours glours self-assigned this Mar 2, 2023
@glours glours requested review from milas and ndeloof March 2, 2023 17:24
@ndeloof
Copy link
Contributor

ndeloof commented Mar 2, 2023

I wonder: should dry-run on pull check the image exists and is accessible with configured credentials, but not actually pull, or just do nothing as proposed here ?

@glours
Copy link
Contributor Author

glours commented Mar 2, 2023

Right! I'll add the check of the image existence and that the user is granted to pull it

@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (9cc1613) 74.18% compared to head (3f7d3c2) 74.18%.

Additional details and impacted files
@@           Coverage Diff           @@
##               v2   #10341   +/-   ##
=======================================
  Coverage   74.18%   74.18%           
=======================================
  Files           2        2           
  Lines         275      275           
=======================================
  Hits          204      204           
  Misses         60       60           
  Partials       11       11           

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

@glours glours force-pushed the dry-run-pull-support branch from b545ff9 to b6a142b Compare March 3, 2023 17:05
Copy link
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/compose/pull.go Show resolved Hide resolved
@glours glours force-pushed the dry-run-pull-support branch from b6a142b to c04cd9d Compare March 5, 2023 21:03
@glours glours force-pushed the dry-run-pull-support branch from c04cd9d to 3f7d3c2 Compare March 5, 2023 21:04
@glours glours merged commit 62fbf20 into docker:v2 Mar 6, 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