Open vndroid opened 10 months ago
Currently replication does not support filter single arch when the target image is a multi-arch image.
Hi there 👋 I really like the multi-arch feature, but in some cases a filter would be nice. For example the mongodb image on DockerHub has images for linux and for windows. I am running a kubernetes cluster on linux nodes and only need the linux images. But the cluster is running on arm64 and amd64 nodes. So multi-arch is a good feature. The windows images now bloat my harbor instance and since I am running on slow-speed internet the replication is taking very long. My idea is to provide a filter so in my case there would be two replication tasks. One for arm64 and one for amd64.
look at crane index filter
should we support arch filter?
Yes, this is a needed feature. Some images have many arch so it takes up quite alot of space. I am only intrested in one arch for my clusters.
The Docker Hub's Official Image has multi-arch sub-image. But I only need a part of them, how can I do automatic filtering while replicating?
Example: PHP has these arch sub-image:
I need only the
amd64
andarm64/v8
, What can I do it?