Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown flag: --builder with docker buildx #80

Open
pchaigno opened this issue Oct 27, 2020 · 0 comments
Open

Unknown flag: --builder with docker buildx #80

pchaigno opened this issue Oct 27, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@pchaigno
Copy link
Member

I'm getting an unknown flag: --builder if I try to build an image with the latest version. I'm using the Buildx plugin included in the Docker CLI, after enabling experimental features as per the documentation.

$ docker --version
Docker version 19.03.12, build 48a66213fe
$ PUSH=true REGISTRIES=docker.io/pchaigno make llvm-image 
PUSH=true EXPORT=false TEST=true scripts/build-image.sh cilium-llvm images/llvm linux/amd64 "$(cat .buildx_builder)" docker.io/pchaigno
will build cilium-llvm:76897177401ee8c204b160bfb154bcc67409b885-wip as it has wip suffix
building cilium-llvm:76897177401ee8c204b160bfb154bcc67409b885-wip
+ run_buildx
+ build_args=("--platform=${platform}" "--builder=${builder}" "--file=${image_dir}/Dockerfile")
+ '[' false = false ']'
+ build_args+=("${image_dir}")
+ '[' true = true ']'
+ docker buildx build --target=test --platform=linux/amd64 --builder= --file=images/llvm/Dockerfile images/llvm
unknown flag: --builder
See 'docker buildx build --help'.
+ exit 1
make: *** [Makefile:53: llvm-image] Error 1

If I remove that flag as follows, everything works fine.

diff --git a/scripts/build-image.sh b/scripts/build-image.sh
index 0504afa..fa16228 100755
--- a/scripts/build-image.sh
+++ b/scripts/build-image.sh
@@ -114,7 +114,6 @@ do_test="${TEST:-false}"
 run_buildx() {
   build_args=(
     "--platform=${platform}"
-    "--builder=${builder}"
     "--file=${image_dir}/Dockerfile"
   )
   if [ "${with_root_context}" = "false" ] ; then

Should I be using a different Docker version?

@pchaigno pchaigno added the bug Something isn't working label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant