Avoid pulling same images multiple times ⚡️#9173
Conversation
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com>
|
@ndeloof I can not re-run the failed tests and they are also failing on |
|
@ndeloof need your help to merge this pull request. |
|
need TestComposePull to be fixed |
|
oh, I thought it may be because of some tests which fails sometime. I will fix it. |
|
@ndeloof I tried running the test case on my local it ran without any error. Can we rerun the integration pipeline if it gets resolved? |
|
@KoditkarVedant I just restarted the CI, the |
|
@glours I've merged the latest changes from V2 in my branch. Lets see if the test still fails. No idea why I'm not able to reproduce this locally. |
|
Finally, Test is failing locally. I will fix it. |
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com>
23d0bcf to
e24d274
Compare
|
Hi there! Any news? |
|
@n-rodriguez this has been delayed for long time. I need to get my local setup up and running again. I will spend some time over the weekend. |
|
@ndeloof Need help to get this PR over the line. |
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com>
796c9cd to
0db6dfe
Compare
|
@laurazard done with the changes |
|
@KoditkarVedant looks like there are some CI failures. I can’t really look into it (on mobile) can you take a look and fix it? The changes to the tests are great |
|
@laurazard I have changed the image used for that to avoid any race condition while running the test case. Lets see if that resolves the issue. I do not get any error for TestComposePull when I run it locally. |
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com>
460f6d2 to
de49bea
Compare
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com>
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com>
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com>
….com:KoditkarVedant/compose into 8768-avoid-pulling-same-image-multiple-times
|
@laurazard I tried multiple ways but this tests doesn't seem to pass on the CI server. It works as expected on local. can you please have a look at this?
|
|
I'll take a look at it :) |
|
@KoditkarVedant I've been looking at this locally and I can consistently replicate the error. Moreover, I was trying to figure out where the error was coming from and searching all over the project, I could not find where the |
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com>
|
@laurazard Thank you - I see what I was doing wrong for so long. I was using the old docker-compose build that I build previously so rebuilding the CLI starts failing the tests locally. I have added the fix. |
|
awesome @KoditkarVedant! We'll try to get it reviewed and merged soon :) |
|
Thanks for the hard work on this project! In this version it looks like mariadb Skipped - Image is already present locally |
|
I can confirm the same, none of my updated :latest images download, claiming they exist locally. Downgrading to compose 2.9.0 updates local images correctly when running Edit: I might also be misunderstanding the purpose of this change, but I have been updating my stacks by running |
|
Same for me, @hugalafutro. I didn't see a documented change in behavior, but |
|
So related to the issue that this PR want to solve, seems this already solved long ago cant really tell which version, i tested a compose file with same First case using Second case download image first then issue Docker compose will check registry and compare to local, docker default behaviour i think? Compose file |
|
Looks like there's a new issue open for this: #9773 |

What I did
docker compose pullpulls images even if they are present locally and if there are multiple services using the same image it pulls them multiple times. This pull request avoid pulling image if it is already present and only fetch image once if required by many services.Related issue
#8768
(not mandatory) A picture of a cute animal, if possible in relation with what you did
