-
Notifications
You must be signed in to change notification settings - Fork 482
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
Documentation missing some points #57
Comments
Buildx will not detect the platforms before the builder starts. So either run There shouldn't be a need to specify platforms manually unless you want to give some node higher priority as manual platforms always override the automatic ones.
You seem to be building from |
After some digging and some guesswork (reading: I don't really know what I'm doing) I finally got it working on ubuntu 18.04 ! Sources:Context
Install and configure qemuI'm using systemd-binfmt instead of # install qemu in static mode (without `binfmt-support`)
sudo apt install qemu qemu-user-static binfmt-support-
# install binfmt config files
git clone https://github.com/computermouth/qemu-static-conf.git
sudo mkdir -p /lib/binfmt.d
sudo cp qemu-static-conf/qemu-{aarch64,arm}-static.conf /etc/binfmt.d
# or enable more emulated architectures:
# sudo cp qemu-static-conf/*.conf /lib/binfmt.d/
sudo systemctl restart systemd-binfmt.service Use buildxNow that qemu and binfmt are properly configured, you can finally use buildx
Result
|
Please create a PR with proposed docs changes. The easiest way to setup qemu should be to run |
I was not aware of that...
I am not sure at all what I documented is the best way to go; I was just trying to quickly get it working from random sources of information. |
I can't figure out for the life of me how you push to a private registry. No matter what I do, I get the following and I suspect it's trying to push to docker.io instead. If it's possible, can we also document this?
|
@chewi You need to provide more details on what is failing and what you are trying and preferably a reproducer.
Also, a good idea to create a new issue if you have a specific problem. |
Thanks for showing that it can work. I thought it was merely a docs issue but perhaps not. I was trying to push to Artifactory, which works without buildx, but no luck here. I've since decided to just wait until the BuildKit stuff officially hits Docker as I'm having to jump through far too many hoops right now. |
According to There is a need to set the environment variable
to get buildx to work on arm64. |
Or add to
(related to #81, only seems to happen with buildx shipped with docker-cli, not the github releases here) |
Thank you so much for this, I hit this bug too. |
Thanks, @thomas-riccardi 💯 it worked |
I am trying the same thing on Windows 10, with docker desktop. In the current directory that I run the following command;
I have a nice Dockerfile, and the above command gives the same result:
What might be the reason? |
Focus on the context. I'm currently using buildx through the Github action |
Hi all,
I've been using buildx on osx-desktop (edge version) to build some multiarch images. I'm now trying to replicate the buildx experience on linux. In this case debian stretch, QEMU installed and docker 19.03. I've had limited success, but I'm really looking forward to getting this working.
First thing is that if starting from scratch we need to add a list of required installs on the host to make this work (if there are any). Secondly in order to make the build on 19.03+ work i had to enable experimental on docker. It might be nice if this could be added to the docs.
Now its build I can get this working:
my docker buildx ls however shows only support for linux/amd64 despite my having QEMU installed. I'm guessing i need to link this somehow. I tried:
This seems to work:
However i can't build on those target platforms :(
I'm probably missing a real simple step but couldn't find it int he guide. Any help really appreciated.
The text was updated successfully, but these errors were encountered: