How Can I Build a Kaniko Image Using Another Kaniko?

August 27, 2025 5 answers
Asked by oven4_rack
I heard that Kaniko is archived now, but I'm curious if there's still a way to build a Kaniko image using another Kaniko image. I've tried several scripts but keep encountering issues like 'file not found' or conflicts with other Kaniko files. Has anyone figured out a stable script or method to make this work?

Answers

one tidy shelf
Iโ€™d personally recommend using the Kaniko repo maintained by mzihlmann. Theyโ€™ve adapted it to fit into a secure-by-default supply chain which could be really beneficial.
Reply to this answer
RAILWAY SIGNAL
Interestingly, Kaniko isnโ€™t dead after all. Chainguard has revived it, so you might want to explore their updated versions!
Reply to this answer
further-to-the-left
That all sounds great, but I'm still stuck on how to specifically use Kaniko to build itself. Anyone have a clear example?
Reply to this answer
slot_2F
Have you thought about using Buildah? Itโ€™s a solid option to build Kaniko, or even to create an updated version of Kaniko that can build other Kaniko images. I recommend checking out some of the Kaniko Chainguard images too. They have some useful features!
Reply to this answer
maybe_next_week
You can definitely build Kaniko with itself! Just run Kaniko in a container and point the executor to the Kaniko repository. Make sure you mount the /kaniko directory correctly to avoid any file conflicts.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions