Skip to content

Commit 3d25f04

Browse files
committed
docker: add a patch to fix Docker buildkit when using ZFS graph driver.
The patch incorporates changes merged into the upstream in this PR: moby/moby#43136
1 parent 07200c0 commit 3d25f04

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

pkgs/applications/virtualization/docker/default.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ rec {
1010
, containerdRev, containerdSha256
1111
, tiniRev, tiniSha256, buildxSupport ? true, composeSupport ? true
1212
# package dependencies
13-
, stdenv, fetchFromGitHub, buildGoPackage
13+
, stdenv, fetchFromGitHub, fetchpatch, buildGoPackage
1414
, makeWrapper, installShellFiles, pkg-config, glibc
1515
, go-md2man, go, containerd, runc, docker-proxy, tini, libtool
1616
, sqlite, iproute2, lvm2, systemd, docker-buildx, docker-compose_2
@@ -79,6 +79,16 @@ rec {
7979

8080
extraUserPath = optionals (stdenv.isLinux && !clientOnly) (makeBinPath [ rootlesskit slirp4netns fuse-overlayfs ]);
8181

82+
patches = [
83+
# This patch incorporates code from a PR fixing using buildkit with the ZFS graph driver.
84+
# It could be removed when a version incorporating this patch is released.
85+
(fetchpatch {
86+
name = "buildkit-zfs.patch";
87+
url = "https://github.com/moby/moby/pull/43136.patch";
88+
sha256 = "1WZfpVnnqFwLMYqaHLploOodls0gHF8OCp7MrM26iX8=";
89+
})
90+
];
91+
8292
postPatch = ''
8393
patchShebangs hack/make.sh hack/make/
8494
'';

0 commit comments

Comments
 (0)