Kaniko failure on Docker Desktop

Kaniko seems to want an environment variable container=kube. But it’s a mystery how I can add this to the Deploy to Docker Registry step.

Any help is much appreciated.

+ /kaniko/executor --dockerfile=Dockerfile --context=dir://. --destination=rtdb:harness --snapshotMode=redo --digest-file=/kaniko/digest-file
kaniko should only be run inside of a container, run with the --force flag if you are sure you want to continue
exit status 1

I had the same issue with K8S newer than 1.21
Used a cluster version 1.21 and worked fine, hope it helps!

1 Like