Questions tagged [multiarch]
52 questions
2
votes
0 answers
Native multi-arch builds can't find linked libraries
I'm transitioning from a MacBook i9 chip to a MacBook M2 chip. I would like to build multi-arch docker images that support both linux/amd64 and linux/arm64. I can build and run on either computer but when I try to run the amd64 build on the arm64…

Matthew Demerath
- 21
- 1
2
votes
0 answers
How to fix 'broken packages' error when installing R?
I am trying to create a multi-arch image using python:3.9-slim-buster as the base image. However, when I run the buildx command, it runs into an error during the arm64 build phase:
> [linux/arm64 9/17] RUN apt-get install -y -f r-base:
#34 6.950…

Ken
- 21
- 1
2
votes
0 answers
Can docker buildx build utilize a docker swarm for multi-platform building?
Just got done compiling a buildx multi-arch docker container that includes amd64, arm64 and armv7. It took about two hours to build -- with the armv7 portion being particularly slow. It only takes about 15 minutes to build natively on a…

bnhf
- 41
- 4
2
votes
1 answer
can you combine separate builds from docker?
I am using circleci to deploy an application, I deploy to both amd and arm architectures so my builds are multi-arch which I have been using docker buildx for. With the new arm support from circleci I was able to cut the time on this process down…

Marcus Ruddick
- 9,795
- 7
- 28
- 43
2
votes
0 answers
How to build Docker multiarch image for native code
I've been building some multiarch images for Java apps, based off someone else's multiarch base image which works fine, because the base image includes the right native Java version for the architecture. All I have to do is add my platform-agnostic…

Ramsay Domloge
- 695
- 3
- 11
2
votes
0 answers
Multi-Arch Dockerfile - is there a way to select which source to COPY based on Architecture
Yes, RUN yum install works for either, but if you want to execute COPY gosu /usr/bin/gosu is there a way to selectively copy gosu-arm64 and gosu-armv7 depending on the target architecture?
I looked, did not find anything, now looking for skunkwork…

Inquisitor Shm
- 1,433
- 5
- 17
- 26
2
votes
1 answer
how to set architecture when building multi-arch Docker image?
Let's say I have an app foo built for many different arches (e.g, foo-arm64, foo-amd64, etc). I would like to make very small Docker images like so:
FROM scratch
ARG ARCH
ADD foo-$ARCH /bin/foo
ENTRYPOINT [ "/bin/foo" ]
However, when I build an…

paleozogt
- 6,393
- 11
- 51
- 94
2
votes
2 answers
Is there a way to use docker manifest-list to build multi-arch images in ECR?
I am trying to use Amazon ECR for storing my images.
Now, I want my image:tag to work with different operating system and architectures like linux/amd64, linux/arm64, windows etc.
This is fine when I use docker but seems like I can't make it work…

Ashwani Jha
- 355
- 5
- 11
1
vote
0 answers
Loading or Pushing Multiplatform OCI Image Tarball
I have a tarball image which is built with docker buildx build for platforms linux/amd64 and linux/arm64 with argument --output=type=oci,dest=/some/path. I am not able to go back and rebuild image with --load or --push.
My first question is, how…

tuna
- 136
- 7
1
vote
1 answer
Docker / Buildx Use Multiple Architectures in Different Stages of Multi-Stage Dockerfile
So I have issues building my docker container for arm/v6 because a tool I use for dependency management (Poetry to be specific) depends on some python wheels that do not exist / are not prebuilt on arm/v6. I only use this tool in one stage to…

LarsJaeger
- 100
- 7
1
vote
1 answer
How to extract files from docker multi-arch images?
I'd like to use docker as tool to compile (ningx) modules for multiple architectures (x86-64 and ARM).
I got my Dockerfile working and it's building each multi-arch image ok but I can't figure out hot to extract (copy) the compiled libraries out of…

epc
- 194
- 4
- 12
1
vote
1 answer
RegAsm - completely unregistering library (including typelib) for 32b and 64b COM
I have a .NET assembly that should be registered both for 32b and 64b COM interop. Our installation script successfully registers this and everything works as expected.
We want our UNinstallation script to remove fully the registration that was done…

Francois Botha
- 4,520
- 1
- 34
- 46
1
vote
1 answer
Identifying architecture dependent location of nsswitch libraries
I have a DEB package which dynamically creates a chroot filesystem in package postinst helper script. The package works fine for x86, amd64, and arm64 on Debian Stretch/Buster/Bullseye and Ubuntu Bionic/Focal/Jammy. However, I recently tried to…

Paul Grinberg
- 1,184
- 14
- 37
1
vote
1 answer
How to use Github Actions with a Docker container with a different architecture
I would like to automate the building of an application I am writing. I want to build it for ARM64/v8 (aarch64) and amd64 (x86). I successfully created a Github workflow for the x86 case.
name: Build
on:
push:
branches: [ master ]
…

Tom Smith
- 153
- 1
- 8
1
vote
0 answers
crossbuild cmake tutorial for Linux, Mac and Windows
CMake has a tutorial here:
https://github.com/Kitware/CMake/tree/master/Help/guide/tutorial/Complete
I would like to crossbuild it for Linux, Mac and Windows using:
https://github.com/multiarch/crossbuild
Crossbuild provides a docker image for…

Kim T
- 5,770
- 1
- 52
- 79