1

I am trying to install buildx from docker doc. At first, I tried Install using a Dckerfile. I have to say, I have no clue how to install it with this steps, the instructions is very poor for this section. So I pick option Download manually.

I downloaded buildx-v0.10.2.darwin-amd64 binary, copy it to $HOME/.docker/cli-plugins and rename it as docker-buildx and make it executable:

$ ll $HOME/.docker/cli-plugins/docker-buildx
-rwxr-xr-x 1 root root 55984928 Feb 14 20:05 /root/.docker/cli-plugins/docker-buildx*

All this steps are from documentation.

As next step, I wanted to Set Buildx as the default builder. According to the docs, I shuld run docker buildx install but it raised and exception 'buildx' is not a docker command:

$ docker buildx install
docker: 'buildx' is not a docker command.
See 'docker --help'

The instructions are very unclear to me and dont know how to fix it. I found this but its basically the same steps so its do not help.

Can anybody help me to find out, whats I am missing?

$ uname -m
x86_64

Docker version 23.0.1, build a5ee5b1

1 Answer 1

-1

first execute

~/.docker/cli-plugins/docker-buildx

and see if you can execute it. if it is not executable then docker buildx install will fail

2
  • This is not a solution, just a check. Is the solution to make it executable? May 23 at 7:28
  • @DannyThunder if the binary is not executable, you will need to use chmod to make it executable. Then docker buildx install will work. It is not a check, it is a proper solution.
    – Kevin T.
    May 31 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.