daemon/command: disable c8d snapshotter when userns remapping enabled

Buildkit fails when userns remapping is enabled and c8d snapshotter is
used. As a temporary workaround, disable c8d snapshotter when userns
remapping is enabled. This will need a proper fix in the future.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
Albin Kerouanton
2025-09-25 11:26:16 +02:00
parent 694e30abff
commit e1722eb8d8
5 changed files with 101 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ func TestBuildUserNamespaceValidateCapabilitiesAreV2(t *testing.T) {
tmpDir := t.TempDir()
dUserRemap := daemon.New(t)
dUserRemap.Start(t, "--userns-remap", "default")
dUserRemap := daemon.New(t, daemon.WithUserNsRemap("default"))
dUserRemap.Start(t)
clientUserRemap := dUserRemap.NewClientT(t)
defer clientUserRemap.Close()