Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker buildx armv7 platform missing

I am trying to build a docker image for a raspberry pi 4 (linux/arm/v7). I am using Ubuntu WSL. I have been able to build the image for Ubuntu WSL with no issues. I am using docker buildx to build the image for raspberry pi4 (armv7). I created the builder like this:

docker buildx create --name my_builder

But listing the builder it looks that the armv7 is missing along with other platforms. Any idea how is this possible? does Ubuntu WSL doesnt support this cross platform? Would I need to do this directly from Windows or some other host platform?

> docker buildx inspect
Name:   my_builder
Driver: docker-container

Nodes:
Name:      my_builder0
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/386

In case this help:

> docker buildx ls
NAME/NODE                 DRIVER/ENDPOINT             STATUS                 PLATFORMS
my_builder *              docker-container
  my_builder0 unix:///var/run/docker.sock             running                linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/386
desktop-linux                                         protocol not available
default                   docker
  default                 default                     running                linux/amd64, linux/386
like image 277
Jorge Avatar asked Mar 09 '26 11:03

Jorge


1 Answers

It should be possible by installing QEMU

sudo apt-get install -y qemu qemu-user-static

After that you should have more architectures/platforms to build images for.

like image 150
Matthias Wiedemann Avatar answered Mar 11 '26 07:03

Matthias Wiedemann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!