https://rancher.com/ logo
r

red-vegetable-45199

02/22/2023, 12:49 AM
I tried to build kubernetes with tag v1.20.15, however, I see following error:
Copy code
$ make quick-release
+++ [0221 16:32:42] Verifying Prerequisites....
+++ [0221 16:32:42] Using Docker for MacOS
+++ [0221 16:32:43] Building Docker image kube-build:build-1b391dbecf-5-v1.15.15-legacy-1
+++ Docker build command failed for kube-build:build-1b391dbecf-5-v1.15.15-legacy-1

#1 [internal] load build definition from Dockerfile
#1 sha256:6e1255cd7055eb1cfae67de69d45beeac7b5ba54045fd75efabf9a5c9b66e94c
#1 transferring dockerfile: 1.97kB done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:023df0965c52a498f67650eb5839999db1772ef4662fc6bf683096ebea80ecfe
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [internal] load metadata for <http://k8s.gcr.io/build-image/kube-cross:v1.15.15-legacy-1|k8s.gcr.io/build-image/kube-cross:v1.15.15-legacy-1>
#3 sha256:de1430dc4d9c424151ed461aaeef09868cd97b36305b30b581cd87032a3545d5
#3 ERROR: no match for platform in manifest sha256:f393f7b488a9488fc1dff42ba24e2674f9a2d962c7dedd93a457aaf414ab956e: not found
------
 > [internal] load metadata for <http://k8s.gcr.io/build-image/kube-cross:v1.15.15-legacy-1|k8s.gcr.io/build-image/kube-cross:v1.15.15-legacy-1>:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:f393f7b488a9488fc1dff42ba24e2674f9a2d962c7dedd93a457aaf414ab956e: not found

To retry manually, run:

docker build -t kube-build:build-1b391dbecf-5-v1.15.15-legacy-1 --pull=false --build-arg=KUBE_BUILD_IMAGE_CROSS_TAG=v1.15.15-legacy-1 --build-arg=KUBE_BASE_IMAGE_REGISTRY=<http://k8s.gcr.io/build-image|k8s.gcr.io/build-image> /Users/yongxiang.gao/source/kubernetes/_output/images/kube-build:build-1b391dbecf-5-v1.15.15-legacy-1

!!! [0221 16:32:44] Call tree:
!!! [0221 16:32:44] 1: build/release.sh:35 kube::build::build_image(...)
make: *** [quick-release] Error 1
How to fix it?
c

creamy-pencil-82913

02/22/2023, 12:56 AM
1. that’s an ancient version of Kubernetes 2. I would probably see if anyone on the Kubernetes slack can help you; this is the Rancher users slack and you probably aren’t going to find many folks trying to build vanilla Kubernetes from source.
r

red-vegetable-45199

02/22/2023, 1:48 AM
Good point, thanks a lot.
27 Views