$ docker buildx version && docker buildx inspect
github.com/docker/buildx v0.31.1
Name: buildkit-latest
Driver: docker-container
Last Activity: 2026-06-14 09:39:34 +0000 UTC
Nodes:
Name: buildkit-latest0
Endpoint: unix:///var/run/docker.sock
Status: running
BuildKit daemon flags: --allow-insecure-entitlement=network.host
BuildKit version: v0.30.0
Platforms: linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
Labels:
org.mobyproject.buildkit.worker.executor: oci
org.mobyproject.buildkit.worker.hostname: 96e2b3ec0668
org.mobyproject.buildkit.worker.network: host
org.mobyproject.buildkit.worker.oci.process-mode: sandbox
org.mobyproject.buildkit.worker.selinux.enabled: false
org.mobyproject.buildkit.worker.snapshotter: overlayfs
GC Policy rule#0:
All: false
Filters: type==source.local,type==exec.cachemount,type==source.git.checkout
Keep Duration: 48h0m0s
Max Used Space: 488.3MiB
GC Policy rule#1:
All: false
Keep Duration: 1440h0m0s
Reserved Space: 9.313GiB
Max Used Space: 93.13GiB
Min Free Space: 155.5GiB
GC Policy rule#2:
All: false
Reserved Space: 9.313GiB
Max Used Space: 93.13GiB
Min Free Space: 155.5GiB
GC Policy rule#3:
All: true
Reserved Space: 9.313GiB
Max Used Space: 93.13GiB
Min Free Space: 155.5GiB
Contributing guidelines and issue reporting guide
Well-formed report checklist
Description of bug
Bug description
When running
chrootfrom within aRUNwhich has bind mounts into the chroot-ed directory the bind mounted directories are not restored to previous state after theRUN. I'm unsure if the mounts never go through at all, or if just the "resetting" after theRUNdoes not work.When building the same dockerfile below without buildkit (just
docker buildinstead ofdocker buildx build) the build suceeds.Reproduction
Version information
docker buildx version
docker version