Skip to content

Commit 2a83e06

Browse files
committed
nydusify: enable pigz by default
We should use pigz for supporting parallel gzip decompression, so that improve the conversion speed when unpack gzip layer for source image. We still allow users to specify the env `CONTAINERD_DISABLE_PIGZ=1` to disable the feature when encounter any decompression error. See https://github.com/containerd/containerd/blob/33c0eafb17dff6de43f4a530fcf05b02ed24330b/archive/compression/compression.go#L261 Signed-off-by: Yan Song <[email protected]>
1 parent c69a43e commit 2a83e06

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

contrib/nydusify/cmd/nydusify.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -874,11 +874,6 @@ func main() {
874874
},
875875
}
876876

877-
// With linux/arm64 platform, containerd/compression prioritizes `unpigz`
878-
// to decompress tar.gz file, which may generate corrupted data somehow.
879-
// Keep the same behavior with x86_64 platform by disabling pigz.
880-
os.Setenv("CONTAINERD_DISABLE_PIGZ", "1")
881-
882877
if !utils.IsSupportedArch(runtime.GOARCH) {
883878
logrus.Fatal("Nydusify can only work under architecture 'amd64' and 'arm64'")
884879
}

0 commit comments

Comments
 (0)