harbor icon indicating copy to clipboard operation
harbor copied to clipboard

How to replicate specified arch images from DockerHub?

Open vndroid opened this issue 1 year ago • 4 comments

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?

vndroid avatar Jan 19 '24 08:01 vndroid

Currently replication does not support filter single arch when the target image is a multi-arch image.

chlins avatar Jan 21 '24 05:01 chlins

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.

image

jp1337 avatar Apr 07 '24 09:04 jp1337

look at crane index filter

jidaojiuyou avatar Aug 19 '24 10:08 jidaojiuyou

should we support arch filter?

kofj avatar Aug 19 '24 11:08 kofj