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