-
Notifications
You must be signed in to change notification settings - Fork 548
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
crane: Should be able to specify multiple platforms to 'crane pull' #1399
Comments
I think we have a few options here:
Among the three I'd say (3) is probably my preference. Registry compatibility is a concern, but I believe language was recently added to the specs to allow this, and registries should update to allow it. If your registry doesn't support it (I don't know if |
For Maybe I'm trying to use crane for a purpose that it wasn't intended for? (We're on a resource-constrained system with limited storage space available to the registry, so pruning down what we're storing only to the necessary platforms is necessary.) We currently pull each image for each platform using |
The potentially confusing this is that if you This behavior should also extend beyond Given that registries are supposed to handle sparse indexes, and that would solve your storage constraint problems, I think that's the way forward. We'll probably need to do some surgery inside the guts of |
You can kind of achieve this today:
The problem is that we're dropping I wonder if we should have some flags for |
Put together #1400 but we might want to make our |
If I could do that above process, and have it work, that would work for my purposes. |
Alright and now we should be good to go, closing this because I think you're happy with that but re-open if not! |
Just tested out the change, it works great! |
Describe the bug
Running
crane pull IMAGE DIR --format=oci --platform=linux/arm64 --platform=linux/amd64 --platform=linux/arm
will only pull thelinux/arm
image.Whereas running with
--platform=all
results in pulling more platforms than necessary for our system. (We only have AMD64, ARM64, and ARM hardware at this time)To Reproduce
Run
crane pull weaveworks/weave-kube:2.8.1 temp_dir --platform=linux/arm64 --platform=linux/amd64 --platform=linux/arm --format=oci
Run
grep -r amd64 temp_dir
and it won't return anything.Run
grep -r arm temp_dir
gives a result.Expected behavior
Running
crane pull IMAGE DIR --format=oci --platform=linux/arm64 --platform=linux/amd64 --platform=linux/arm
results in pulling the 3 different architectures, not just the last one.Additional context
Add any other context about the problem here.
crane version
: 0.10.0The text was updated successfully, but these errors were encountered: