From 03d60a89a0cd27766c17c5f78645131add26bbf0 Mon Sep 17 00:00:00 2001 From: ricolin Date: Fri, 21 May 2021 15:48:30 +0800 Subject: [PATCH] Add build instruction for buildx CLI plugin docker buildx CLI plugin is not default enable most functionality which we comsumed during build releases. Means `docker buildx build` will work, but flags like `--load` or `--platform` is not supported. Which is still true statement with most up-to-date docker version. That means for new join member who plan to build by themself, will need to notice if buildx is properly installed. And not getting confused by build script when docker complant about unknown flag `--load`, `--platoform`. Hance, add buildx instruction to note. --- build/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/README.md b/build/README.md index 02f75e271ef..fed53444006 100644 --- a/build/README.md +++ b/build/README.md @@ -9,6 +9,7 @@ Building Kubernetes is easy if you take advantage of the containerized build env **Note**: You will want to set the Docker VM to have at least 8GB of initial memory or building will likely fail. (See: [#11852]( http://issue.k8s.io/11852)). * **Linux with local Docker** Install Docker according to the [instructions](https://docs.docker.com/installation/#installation) for your OS. * **Windows with Docker Desktop WSL2 backend** Install Docker according to the [instructions](https://docs.docker.com/docker-for-windows/wsl-tech-preview/). Be sure to store your sources in the local Linux file system, not the Windows remote mount at `/mnt/c`. + **Note**: You will need to check if Docker CLI plugin buildx is properly installed. You can install buildx according to the [instructions](https://github.com/docker/buildx/blob/master/README.md#installing). 2. **Optional** [Google Cloud SDK](https://developers.google.com/cloud/sdk/) You must install and configure Google Cloud SDK if you want to upload your release to Google Cloud Storage and may safely omit this otherwise. @@ -78,4 +79,4 @@ example, you could use the following one-liner: ```bash SOURCE_DATE_EPOCH=$(git show -s --format=format:%ct HEAD) -``` \ No newline at end of file +```