harbor
harbor copied to clipboard
How to replicate specified arch images from DockerHub?
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:
linux /amd64
linux /arm/v6
linux /arm/v7
linux /arm64/v8
linux /386
linux /ppc64le
linux /s390x
I need only the amd64
and arm64/v8
, What can I do it?
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?