You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to build amd64 on amd64 hosts, as well as arm64 on arm64 hosts but not when trying to build amd64 containers on arm64 hosts. It happened only for some of my pipelines but not all. Weird. Here's an example that I got the failures.
$ uname -m
aarch64
$ docker buildx version
github.com/docker/buildx v0.10.2 00ed17d
$ docker buildx inspect
Name: builder
Driver: docker-container
Last Activity: 2023-02-19 21:56:13 +0000 UTC
Nodes:
Name: builder0
Endpoint: unix:///var/run/docker.sock
Status: running
Buildkit: v0.11.3
Platforms: linux/arm64, linux/amd64, linux/amd64/v2, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6
$docker buildx build --platform linux/amd64 -f Dockerfile https://github.com/jellyfin/jellyfin.git#master
....
=> ERROR [builder 4/4] RUN dotnet publish Jellyfin.Server --disable-parallel --configuration Release --output="/jellyfin" --self-contained --runtime linux-x64 -p 37.0s
------
> [builder 4/4] RUN dotnet publish Jellyfin.Server --disable-parallel --configuration Release --output="/jellyfin" --self-contained --runtime linux-x64 -p:DebugSymbols=f
alse -p:DebugType=none:
#0 15.52 MSBuild version 17.4.1+fedecea9d for .NET
#0 35.22 Segmentation fault (core dumped)
------
Dockerfile:75
--------------------
73 | # because of changes in docker and systemd we need to not build in parallel at the moment
74 | # see https://success.docker.com/article/how-to-reserve-resource-temporarily-unavailable-errors-due-to-tasksmax-setting
75 | >>> RUN dotnet publish Jellyfin.Server --disable-parallel --configuration Release --output="/jellyfin" --self-contained --runtime linux-x64 -p:DebugSymbols=false -p:DebugType=none
76 |
77 | FROM app
--------------------
ERROR: failed to solve: process "/bin/sh -c dotnet publish Jellyfin.Server --disable-parallel --configuration Release --output=\"/jellyfin\" --self-contained --runtime linux-x64 -p:DebugSymbols=false -p:DebugType=none" did not complete successfully: exit code: 139
Things I've already tried in btw
$ docker system prune -a
$ docker pull tonistiigi/binfmt
$ docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-*
$ docker run --privileged --rm tonistiigi/binfmt --install all
$ docker buildx rm builder
$ docker buildx prune -a -f
$ docker buildx create --name builder --use
Appreciated any help, pointer here.
The text was updated successfully, but these errors were encountered:
I was able to build amd64 on amd64 hosts, as well as arm64 on arm64 hosts but not when trying to build amd64 containers on arm64 hosts. It happened only for some of my pipelines but not all. Weird. Here's an example that I got the failures.
Things I've already tried in btw
$ docker system prune -a
$ docker pull tonistiigi/binfmt
$ docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-*
$ docker run --privileged --rm tonistiigi/binfmt --install all
$ docker buildx rm builder
$ docker buildx prune -a -f
$ docker buildx create --name builder --use
Appreciated any help, pointer here.
The text was updated successfully, but these errors were encountered: