Skip to content

fix race condition collecting pulled images IDs#10051

Merged
milas merged 1 commit into
docker:v2from
ndeloof:9897
Dec 7, 2022
Merged

fix race condition collecting pulled images IDs#10051
milas merged 1 commit into
docker:v2from
ndeloof:9897

Conversation

@ndeloof
Copy link
Copy Markdown
Contributor

@ndeloof ndeloof commented Dec 7, 2022

What I did
fix race condition: we only can set images ID after all pulls completed and we collected the digests.

Related issue
fixes #9897

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

Comment thread pkg/compose/pull.go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Base: 75.74% // Head: 75.74% // No change to project coverage 👍

Coverage data is based on head (a73dce4) compared to base (804d716).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##               v2   #10051   +/-   ##
=======================================
  Coverage   75.74%   75.74%           
=======================================
  Files           2        2           
  Lines         235      235           
=======================================
  Hits          178      178           
  Misses         50       50           
  Partials        7        7           
Impacted Files Coverage Δ
pkg/e2e/framework.go 73.85% <0.00%> (ø)

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.

@milas milas merged commit b27ace6 into docker:v2 Dec 7, 2022
@milas milas added the kind/bug label Dec 7, 2022
@ndeloof ndeloof deleted the 9897 branch December 20, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker-compose up re-creates container when it shouldn't

4 participants