Repository navigation
Conversation
thaJeztah
commented
Nov 3, 2026
| # force packages to be built with xz compression, as Ubuntu 21.10 and up use | ||
| # zstd compression, which is non-standard, and breaks 'dpkg-sig --verify' | ||
| override_dh_builddeb: | ||
| dh_builddeb -- -Zxz |
Member
Author
There was a problem hiding this comment.
We could consider bumping the compression level (default is 19?), to get back some of the size, but it will increase build-times;
dh_builddeb -- -Zzstd -z22
zstd default zstd -22
Combined package size 33.99 MB 32.65 MB
Increase over xz +12.4% +8.0%
Median extraction vs xz 62% faster 51% faster
Median user CPU vs xz 90% less 87% less
thaJeztah
force-pushed
the
z_the_zstd
branch
from
November 10, 2026 08:11
b21fd05 to
99cba4d
Compare
This override was originally added in [docker-ce-packaging@0f4c193][1]. At the
time, our deploy pipeline used `dpkg-sig` to sign individual packages to
allow them to be verified when installing offline. The override was added
because Ubuntu 21.10 switched the default compression for .deb packages to
use zstd, which is not compatible with `dpkg-sig`.
Given that dpkg-sig has not received updates since 2006 and now removed [2],
we stopped using it and stopped signing individual packages, so we can remove
the override and use the defaults as used by the distro.
Before:
docker buildx bake pkg-docker-engine-ubuntu2604 --set pkg-docker-engine-ubuntu2604.platforms=linux/arm64
ls -l ./bin/pkg/docker-engine/ubuntu2604/linux_arm64/ubuntu/resolute/arm64/
total 61720
-rw-r--r--@ 1 thajeztah staff 7719 Nov 3 13:02 docker-ce_0.0.0~20261103082347~b1bf127-1~ubuntu.26.04~resolute_arm64.buildinfo
-rw-r--r--@ 1 thajeztah staff 1942 Nov 3 13:02 docker-ce_0.0.0~20261103082347~b1bf127-1~ubuntu.26.04~resolute_arm64.changes
-rw-r--r--@ 1 thajeztah staff 21099564 Nov 3 13:02 docker-ce_0.0.0~20261103082347~b1bf127-1~ubuntu.26.04~resolute_arm64.deb
-rw-r--r--@ 1 thajeztah staff 9130404 Nov 3 13:02 docker-ce-rootless-extras_0.0.0~20261103082347~b1bf127-1~ubuntu.26.04~resolute_arm64.deb
After:
docker buildx bake pkg-docker-engine-ubuntu2604 --set pkg-docker-engine-ubuntu2604.platforms=linux/arm64
ls -l ./bin/pkg/docker-engine/ubuntu2604/linux_arm64/ubuntu/resolute/arm64/
total 67864
-rw-r--r--@ 1 thajeztah staff 7719 Nov 3 13:05 docker-ce_0.0.0~20261103082347~b1bf127-1~ubuntu.26.04~resolute_arm64.buildinfo
-rw-r--r--@ 1 thajeztah staff 1942 Nov 3 13:05 docker-ce_0.0.0~20261103082347~b1bf127-1~ubuntu.26.04~resolute_arm64.changes
-rw-r--r--@ 1 thajeztah staff 24165166 Nov 3 13:05 docker-ce_0.0.0~20261103082347~b1bf127-1~ubuntu.26.04~resolute_arm64.deb
-rw-r--r--@ 1 thajeztah staff 9821436 Nov 3 13:05 docker-ce-rootless-extras_0.0.0~20261103082347~b1bf127-1~ubuntu.26.04~resolute_arm64.deb
For Ubuntu 26.04 (arm64), this increases the combined package size
from 30.23 MB to 33.99 MB (+12.4%), but significantly reduces extraction
time and CPU usage.
Benchmark results for docker-ce (5 runs, median):
xz zstd
Extraction 0.550s 0.209s
User CPU 1.215s 0.126s
System CPU 0.438s 0.118s
This reduces extraction wall time by approximately 62%, while also
reducing CPU usage considerably.
[1]: docker/docker-ce-packaging@0f4c193
[2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995113
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah
force-pushed
the
z_the_zstd
branch
from
November 23, 2026 16:01
99cba4d to
53319fd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
relates to:
This override was originally added in docker-ce-packaging@0f4c193. At the time, our deploy pipeline used
dpkg-sigto sign individual packages to allow them to be verified when installing offline. The override was added because Ubuntu 21.10 switched the default compression for .deb packages to use zstd, which is not compatible withdpkg-sig.Given that dpkg-sig has not received updates since 2006 and now removed 2, we stopped using it and stopped signing individual packages, so we can remove the override and use the defaults as used by the distro.
Before:
After:
For Ubuntu 26.04 (arm64), this increases the combined package size from 30.23 MB to 33.99 MB (+12.4%), but significantly reduces extraction time and CPU usage.
Benchmark results for docker-ce (5 runs, median):
Extraction 0.550s 0.209s
User CPU 1.215s 0.126s
System CPU 0.438s 0.118s
This reduces extraction wall time by approximately 62%, while also reducing CPU usage considerably.