Skip to content

Pin Docker Hub BuildKit image to v0.30.0 (#2523) - #2533

Merged
MuhammadTahaNaveed merged 1 commit into
apache:PG17from
jrgemignani:fix_dockerhub_buildkit_PG17
Aug 21, 2026
Merged

Pin Docker Hub BuildKit image to v0.30.0 (#2523)#2533
MuhammadTahaNaveed merged 1 commit into
apache:PG17from
jrgemignani:fix_dockerhub_buildkit_PG17

Conversation

@jrgemignani

Copy link
Copy Markdown
Contributor

Commit 8f16cf5 pinned the docker-container buildx driver to moby/buildkit:v0.31.2 to dodge the runc masked-path regression, but that release bundles runc 1.3.6, which already contains the maskDir() change. Every RUN step still fails during container init:

can't mask dir "/proc/acpi": mount src=tmpfs, dst=/proc/acpi,
flags=MS_RDONLY, data=nr_blocks=1,nr_inodes=1: invalid argument

maskDir() mounts masked paths with nr_inodes=1, which the Docker Hub build host's Ubuntu 20.04 5.4 kernel rejects with EINVAL (opencontainers/runc#5348).

Bundled runc by BuildKit release:
v0.30.0 runc 1.3.5 unaffected
v0.31.0 - v0.31.2 runc 1.3.6 affected
v0.32.0 - v0.32.2 runc 1.4.3 affected

v0.32.2 is the newest BuildKit release, so no version ships the fix yet. Pin to v0.30.0, the last release predating maskDir(). Drop the pin once BuildKit ships runc >= 1.4.4.

Verified locally: a multi-arch (linux/amd64, linux/arm64) build of this Dockerfile with moby/buildkit:v0.30.0 completes, and both image variants create a graph and run Cypher queries.

Commit 8f16cf5 pinned the docker-container buildx driver to
moby/buildkit:v0.31.2 to dodge the runc masked-path regression, but that
release bundles runc 1.3.6, which already contains the maskDir() change.
Every RUN step still fails during container init:

  can't mask dir "/proc/acpi": mount src=tmpfs, dst=/proc/acpi,
  flags=MS_RDONLY, data=nr_blocks=1,nr_inodes=1: invalid argument

maskDir() mounts masked paths with nr_inodes=1, which the Docker Hub build
host's Ubuntu 20.04 5.4 kernel rejects with EINVAL (opencontainers/runc#5348).

Bundled runc by BuildKit release:
  v0.30.0             runc 1.3.5   unaffected
  v0.31.0 - v0.31.2   runc 1.3.6   affected
  v0.32.0 - v0.32.2   runc 1.4.3   affected

v0.32.2 is the newest BuildKit release, so no version ships the fix yet.
Pin to v0.30.0, the last release predating maskDir(). Drop the pin once
BuildKit ships runc >= 1.4.4.

Verified locally: a multi-arch (linux/amd64, linux/arm64) build of this
Dockerfile with moby/buildkit:v0.30.0 completes, and both image variants
create a graph and run Cypher queries.
@MuhammadTahaNaveed
MuhammadTahaNaveed merged commit 0818cb6 into apache:PG17 Aug 21, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants