-
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
docker compose pull has no options for pull policy #10977
Comments
Hey @FFdhorkin |
@FFdhorkin do you have more details about your issue?
Do you have more information about how the "rate limit" exposed itself? Do you have the error message (if any) that you got? (want to be sure these are Docker Hub rate limits, or other rate-limits: I've seen cases where GitHub itself was producing w.r.t.
and
Are these all "distinct" images, or are there multiple services that use the same image? (So without your workarounds it would be (say) pull
|
I have not; I'll be switching over to using a private ECR once things are set up, so I didn't explore that route. Incidentally, I am getting rate limits on Amazon Public ECR images, too, which is weird, since I thought the whole point of that was to avoid that.
I did not explicitly set any
The specific error message I get is
|
Description
I was having issues with my docker compose project when I tried to run it from within a Github Action. Seems like for some reason, on Github, I get rate limited for pulls, but don't locally.
This led to me coming up with the workaround of running
docker compose --parallel 1 pull
before thedocker compose up
I noticed that even though the docker cache github action was showing corresponding cached images, the
docker compose --parallel 1 pull
was resulting in images being pulled even though they were already in the cache (I was still getting occasional rate limit pull failures on cached images)In other words, there's no way to say
docker compose pull --missing-only
the way you can dodocker compose up --pull missing
This led to me attempting the following even hackier workaround:
I'm not happy with this solution, but
COMPOSE_PARALLEL_LIMIT=1 make setup
would cause performance issues. Doingdocker compose --parallel 1 pull --ignore-pull-failures
also is not an ideal solution, since it will attempt unnecessary pulls.TL;DR
there should be some sort of flag for
docker compose pull
that corresponds todocker compose up --pull ____
so that you can pull only missing imagesThe text was updated successfully, but these errors were encountered: