Open devjgm opened 3 years ago
tl;dr if kaniko wants to build this static binary, they need to pass more flags: https://github.com/golang/go/issues/24787#issuecomment-387611691
Really disappointing that there has been no update on this from the GCP team. I have a high memory build and so have incurred some cost from trying to fix this. I always initially assume that the problem is my own change and not a defect in the cloud platform!
Also using GCP and Cloud build and I'm seeing this same problem. Using Kaniko latest
.
The change I made to trigger this was to change the base of the Dockerfile from registry.access.redhat.com/ubi8/ubi-minimal:8.3
to registry.access.redhat.com/ubi8/ubi-minimal:8.4
.
For now, I'm working around the issue with the debug version of Kaniko as suggested in GoogleContainerTools/kaniko#1604
I'm using
docker-credential-gcr
indirectly via kaniko in Google Cloud Build. When I use a recent version of Kaniko, which uses a recent version of this, I get the following crash:I think the problem is in this code as described in https://github.com/GoogleContainerTools/kaniko/issues/1604#issuecomment-848287852