-
Notifications
You must be signed in to change notification settings - Fork 481
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
buildx is not a docker command on linux/amd64 ? #132
Comments
I've had happen before since ~/.docker/cli-plugins/docker-buildx is mot in $PATH |
BTW, that's the old release, consider upgrading to 0.3 which has nice additions. |
Thank you so much for the reply. Works for me now. Path issues. Yes will update, I see newer version now. |
How can I compile images for arm64 embedded on my amd64 linux machine? Buildx lists only linux/amd64 in platforms for me. I had downloaded buildx-3.0-amd64 and saved it as docker-buildx in cli-plugins. is that the right way to do it? $ docker buildx ls |
If you don't use Docker Desktop you need to set up qemu support in your kernel yourself and buildx will pick it up on bootstrap. You can use https://github.com/multiarch/qemu-user-static#getting-started or https://hub.docker.com/r/docker/binfmt/tags images to install the emulation support. |
Thanks @tonistiigi . Yes I had created a directory instead of file, works perfect now. Thanks for the link, so if I understand it right qemu-user-static seems to be useful if I wanted to run arm64 image on host x86, but if I just wanted to create arm64 image on host x86 and run on embedded arm64 I might not need qemu-user-static? |
@gupta05 If your Dockerfile needs to execute |
Docker-ce CLI 19.03.2 , git commit 6a30dfca03 , experimental enabled . |
@yxliang01 do you have the plugin installed? |
@FernandoMiguel I didn't install myself because in the README.md of this repo, it says buildx is bundled with docker 19.03, right? So, I wouldn't expect the need to install it manually. See https://github.com/docker/buildx/blob/master/README.md#docker-ce . |
@yxliang01 I always found I had to either install it or include it in the $PATH |
Did you add |
@darkvertex No, but I do |
Did not change anything for me. |
I am facing the same issue. Have tried with both editing the config.json file and exporting the environment variable, but still facing this issue. Any help would be appreciated. Thanks. |
Same here. What worked for me on Debian buster was to create the file {
"experimental": true
} I then restarted the docker daemon by running $ docker info | grep -i exp
WARNING: No swap limit support
Experimental: true |
oh, ok, I see my confusion here, I was not paying much attention to the comments and was just enabling experimental in the file |
Does this work for you as well? (means you don't have to mess with config files): DOCKER_BUILD_KIT=1 DOCKER_CLI_EXPERIMENTAL=enabled docker buildx --help |
I'm experiencing the same problem. As you can see, both client and server have experimental enabled, and this is on Docker 19.03 which should have buildx included. I'd appreciate any advice.
|
@cjyar Try following steps:
Now the command |
Thanks @shahidhs-ibm; that worked. Did I misunderstand the documentation? I thought it was supposed to work with Docker 19.03 if I just enabled experimental mode. |
Same issue for me – I think the docs are just wrong here |
Docker Buildx is already included in Docker 19.03 and you don't need to download and copy the binary, you just need to enable experimental features in Docker CLI or Docker Desktop:
|
@antoniodvr But AFAICT the issue is it seems like you do need to do so for some repackaged versions supplied with distros – as noted in my PR. It came up for me and @cjyar at least |
Thanks a lot, with this I managed to get docker buildx to run (using Fedora 32). Out of curiosity, does buildx update automatically? I substituted 4.1 with 4.2 in your commands, but is there a way to avoid redoing it when the next version releases? |
If you have
|
I have
but when I run what you suggested, I am getting:
|
buildx is a cli plugin and needs to be installed first |
Using the container image # install
alias docker='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock:ro abdennour/docker:20.10.9-buildx'
# run
docker buildx version
docker buildx du
# clean & return back to the main docker command
unalias docker |
i'm getting this issue when using |
@AndnixSH Try |
Any chance you could provide this image as arm64 please :) ? @abdennour |
@Goldenflamer You can use this one if you want: https://github.com/crazy-max/docker-docker#about |
Ty that works great. |
Hi,
I have docker 19.03 on ubuntu amd64 and I tried the steps in your readme but fail to get buildx command working. It complains command not found. What do I need to get it working? I tried beta release as well and same issue. I am looking to compile images for arm64.
Appreciate the help a lot,
Puja
$ cat ~/.docker/config.json
{
"experimental": "enabled"
}
$ ls -l ~/.docker/cli-plugins/docker-buildx
total 55936
drwxr-xr-x 2 pujag newhiredefaultgrp 4096 Aug 12 14:05 .
drwxr-xr-x 3 pujag newhiredefaultgrp 4096 Aug 12 14:01 ..
-rwxr-xr-x 1 pujag newhiredefaultgrp 57036919 Aug 12 14:04 buildx-v0.2.0.linux-amd64
$ docker version
Client: Docker Engine - Community
Version: 19.03.1
API version: 1.40
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:21:05 2019
OS/Arch: linux/amd64
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 19.03.1
API version: 1.40 (minimum version 1.12)
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:19:41 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683
The text was updated successfully, but these errors were encountered: