diff --git a/hack/build-image/Dockerfile b/hack/build-image/Dockerfile index 9025e922e..0ed10e6c7 100644 --- a/hack/build-image/Dockerfile +++ b/hack/build-image/Dockerfile @@ -17,6 +17,7 @@ FROM golang:1.10-alpine3.8 RUN apk add --update --no-cache git bash && \ mkdir -p /go/src/k8s.io && \ cd /go/src/k8s.io && \ + git config --global advice.detachedHead false && \ git clone -b kubernetes-1.11.0 https://github.com/kubernetes/code-generator && \ git clone -b kubernetes-1.11.0 https://github.com/kubernetes/apimachinery && \ go get golang.org/x/tools/cmd/goimports && \