How to Build a Kaniko Image Using Another Kaniko Image?

August 26, 2025 4 answers
Asked by 1 hour rehearsal
I've learned that kaniko has been archived, but I feel there's still a way to create a kaniko image using another kaniko image. I've tried various script versions but keep running into issues like 'files not found' and conflicts with other kaniko files. Has anyone successfully figured out a working script for this situation?

Answers

_5 eggs whisked
I recommend using buildah for this! It's a great tool that can build Kaniko, and it can even build a buildah image that can subsequently build more Kaniko versions. So you get a nice chain of builds going!
Reply to this answer
dowel.joint
Oh, don't worryโ€”kaniko isn't dead anymore! Chainguard has taken it over, so it's actively maintained now. You might want to check their updated versions if you havenโ€™t already!
Reply to this answer
homegrown garlic
You can build kaniko using another kaniko by running it inside a container. Just make sure the executor points to the kaniko repo and that you mount the /kaniko directory correctly to avoid conflicts. That should help you get it running!
Reply to this answer
Rubric.Review.Room
If you're really in a crunch and need something off-the-shelf, I'd suggest checking out https://github.com/mzihlmann/kaniko. Chainguard's take on kaniko adapts it for a 'secure by default' supply chain, so it might be worth looking into for reliability.

1 hour rehearsal: That's interesting! But I'm still stuck on how to actually build it using kaniko. Any tips?

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions