extra untagged images in ECR with jib:build

23 views
Skip to first unread message

John Bedalov

unread,
Jan 7, 2022, 3:45:13 PM1/7/22
to Jib users
Hi, we are using the jib maven plugin to push to ECR and noticed that there seems to be 1-2 untagged images for every tagged image.

Does jib:build push an untagged image and then tags it hence leaving the untagged image around? If so, can we change the workflow to tag then push?

Thanks

Chanseok Oh

unread,
Jan 10, 2022, 12:06:51 PM1/10/22
to Jib users
Hi,

If you are seeing 1-2 untagged images, then they are different images that the tag image. Tagging an image does not result in a new image; tag is just a pointer given to any existing image, so it's impossible that for the same image, you have a tagged image and an untagged image. As tags are like just names given to existing images, there cannot be something like "extra untagged images." Can you check the SHA hashes of those tagged and untagged images? I'm sure they will be different.

One hypothesis I have is that you are pushing multi-architecture image building. For example, Jib is building and pushing two different images for amd and arm. For those images, they are not tagged. And then Jib pushes a tagged manifest list listing the two images. You'll be doing multi-architecture image building only when you have configured <platforms> in Jib. But if you are not doing multi-platform building, then the tagged images and the untagged images you see are just different images. And of course, for a single-platform building, Jib builds and pushes only one image.

John Bedalov

unread,
Jan 12, 2022, 11:02:06 AM1/12/22
to Jib users
We are using <platforms>, this explains it. Thank you so much!
Reply all
Reply to author
Forward
0 new messages