Kaniko Multi Stage Build Issue
Author: ghostCreated Apr 8, 2025Updated Jun 2, 2025
we use kaniko to build docker images. in our current setup, we are to build an image using Kaniko and run commands after the executor. In case of a single stage, it works flawless.
But, when we are running a multi stage image build, the context of the image our image build is running on gets lost and we get a command not found error for the package that's installed on the container image.
please assist if there's a workaround for it. I have tried --cleanup=false & --cache=true, doesn't work.
found a similar kinda issue here: https://github.com/GoogleContainerTools/kaniko/issues/3325
Source: GoogleContainerTools/kaniko