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
On Debian you can install plugin package (see official install instructions):
apt install docker-buildx-plugin
similar on RedHat/CentOS:
yum install docker-buildx-plugin
similar on Arch Linux:
pacman -S docker-buildx
then run:
docker buildx install
or update /etc/docker/daemon.json with (and restart docker service:systemctl restart docker):
{
"features": {
"buildkit" : true
}
}
Then docker info should be showing something like this:
$ docker info | head -n8
Client: Docker Engine - Community
Version: 24.0.6
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With