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 am trying to build a multiarch docker image with buildx and a Dockerfile that I have for a project. On on Ubuntu as host this works fine, but when trying to build with VoidLinux as host I see this output/error:
$ docker buildx build --platform linux/arm64/v8,linux/amd64 --push -f Dockerfile -t my-custom-tag .
[+] Building 4.5s (9/47) docker-container:mybuilder
=> [internal] load build definition from Dockerfile
=> => transferring dockerfile: 2.33kB
=> [linux/amd64 internal] load metadata for registry.access.redhat.com/ubi9-minimal:9.1.0-1793
=> [linux/arm64 internal] load metadata for registry.access.redhat.com/ubi9-minimal:9.1.0-1793
=> [internal] load .dockerignore
=> => transferring context: 62B
=> [internal] load build context
=> => transferring context: 94.55MB
=> [linux/arm64 root 1/2] FROM registry.access.redhat.com/ubi9-minimal:9.1.0-1793@sha256:61925d31338b7b41bfd5b6b8cf45eaf80753d415b0269fc03613c5c5049b879e
=> => resolve registry.access.redhat.com/ubi9-minimal:9.1.0-1793@sha256:61925d31338b7b41bfd5b6b8cf45eaf80753d415b0269fc03613c5c5049b879e
=> => sha256:1b885339e7dcfd6d72571e17b62a20ff54aad84d7242865fa4ca65a4ed648142 36.14MB / 36.14MB
=> => extracting sha256:1b885339e7dcfd6d72571e17b62a20ff54aad84d7242865fa4ca65a4ed648142
=> [linux/amd64 root 1/2] FROM registry.access.redhat.com/ubi9-minimal:9.1.0-1793@sha256:61925d31338b7b41bfd5b6b8cf45eaf80753d415b0269fc03613c5c5049b879e
=> => resolve registry.access.redhat.com/ubi9-minimal:9.1.0-1793@sha256:61925d31338b7b41bfd5b6b8cf45eaf80753d415b0269fc03613c5c5049b879e
=> => sha256:ba958a445f00d91e4019b520c467e36e7f5bc07da02f2a87e9ccefbe4a70ff6d 37.85MB / 37.85MB
=> => extracting sha256:ba958a445f00d91e4019b520c467e36e7f5bc07da02f2a87e9ccefbe4a70ff6d
=> ERROR [linux/amd64 root 2/2] RUN microdnf install -y java-17-openjdk-headless which && microdnf update -y && microdnf clean all
=> CANCELED [linux/arm64 root 2/2] RUN microdnf install -y java-17-openjdk-headless which && microdnf update -y && microdnf clean all
------
> [linux/amd64 root 2/2] RUN microdnf install -y java-17-openjdk-headless which && microdnf update -y && microdnf clean all:
0.821 runc run failed: unable to start container process: error during container init: error mounting "cgroup" to rootfs at "/sys/fs/cgroup": mount cgroup:/sys/fs/cgroup/elogind (via /proc/self/fd/6), flags: 0xf, data: elogind: invalid argument
------
Dockerfile:7
--------------------
6 |
7 | >>> RUN microdnf install -y ${JAVA_PACKAGE} which \
8 | >>> && microdnf update -y \
9 | >>> && microdnf clean all
10 |
--------------------
ERROR: failed to solve: process "/bin/sh -c microdnf install -y ${JAVA_PACKAGE} which && microdnf update -y && microdnf clean all" did not complete successfully: exit code: 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to build a multiarch docker image with buildx and a
Dockerfile
that I have for a project. On on Ubuntu as host this works fine, but when trying to build with VoidLinux as host I see this output/error:Beta Was this translation helpful? Give feedback.
All reactions