How Can I Build a Kaniko Image Using Another Kaniko?

August 27, 2025 5 answers
Asked by MightyPineapple42
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

OpinionatedUser101
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
RevivedKanikoFan
Interestingly, Kaniko isnโ€™t dead after all. Chainguard has revived it, so you might want to explore their updated versions!
Reply to this answer
QuestionAsker88
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
BuildahBandit
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
CuriousCoder88
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