Skip to content

Commit 49a9f3e

Browse files
authored
docker_24: drop (#367088)
2 parents 414c49c + ba84d7f commit 49a9f3e

File tree

4 files changed

+6
-56
lines changed

4 files changed

+6
-56
lines changed

nixos/doc/manual/release-notes/rl-2505.section.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@
200200

201201
- `matomo` now defaults to version 5 (previously available as `matomo_5`). Version 4 has been removed as it reached EOL on December 19, 2024.
202202

203+
- `docker_24` has been removed, as it was EOL with vulnerabilites since June 08, 2024.
204+
203205
- `containerd` has been updated to v2, which contains breaking changes. See the [containerd
204206
2.0](https://github.com/containerd/containerd/blob/main/docs/containerd-2.0.md) documentation for more
205207
details.

pkgs/applications/virtualization/docker/default.nix

Lines changed: 2 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -119,27 +119,6 @@ rec {
119119

120120
extraUserPath = lib.optionals (stdenv.hostPlatform.isLinux && !clientOnly) (lib.makeBinPath [ rootlesskit slirp4netns fuse-overlayfs ]);
121121

122-
patches = lib.optionals (lib.versionOlder version "23") [
123-
# This patch incorporates code from a PR fixing using buildkit with the ZFS graph driver.
124-
# It could be removed when a version incorporating this patch is released.
125-
(fetchpatch {
126-
name = "buildkit-zfs.patch";
127-
url = "https://github.com/moby/moby/pull/43136.patch";
128-
hash = "sha256-1WZfpVnnqFwLMYqaHLploOodls0gHF8OCp7MrM26iX8=";
129-
})
130-
] ++ lib.optionals (lib.versions.major version == "24") [
131-
# docker_24 has LimitNOFILE set to "infinity", which causes a wide variety of issues in containers.
132-
# Issues range from higher-than-usual ressource usage, to containers not starting at all.
133-
# This patch (part of the release candidates for docker_25) simply removes this unit option
134-
# making systemd use its default "1024:524288", which is sane. See commit message and/or the PR for
135-
# more details: https://github.com/moby/moby/pull/45534
136-
(fetchpatch {
137-
name = "LimitNOFILE-systemd-default.patch";
138-
url = "https://github.com/moby/moby/pull/45534/commits/c8930105bc9fc3c1a8a90886c23535cc6c41e130.patch";
139-
hash = "sha256-nyGLxFrJaD0TrDqsAwOD6Iph0aHcFH9sABj1Fy74sec=";
140-
})
141-
];
142-
143122
postPatch = ''
144123
patchShebangs hack/make.sh hack/make/ hack/with-go-mod.sh
145124
'';
@@ -214,7 +193,7 @@ rec {
214193
makeWrapper pkg-config go-md2man go libtool installShellFiles
215194
];
216195

217-
buildInputs = plugins ++ lib.optionals (lib.versionAtLeast version "23" && stdenv.hostPlatform.isLinux) [
196+
buildInputs = plugins ++ lib.optionals (stdenv.hostPlatform.isLinux) [
218197
glibc
219198
glibc.static
220199
];
@@ -242,7 +221,7 @@ rec {
242221
243222
'';
244223

245-
outputs = ["out"] ++ lib.optional (lib.versionOlder version "23") "man";
224+
outputs = ["out"];
246225

247226
installPhase = ''
248227
install -Dm755 ./build/docker $out/libexec/docker/docker
@@ -263,18 +242,6 @@ rec {
263242
installShellCompletion --bash ./contrib/completion/bash/docker
264243
installShellCompletion --fish ./contrib/completion/fish/docker.fish
265244
installShellCompletion --zsh ./contrib/completion/zsh/_docker
266-
'' + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform && lib.versionOlder version "23") ''
267-
# Generate man pages from cobra commands
268-
echo "Generate man pages from cobra"
269-
mkdir -p ./man/man1
270-
go build -o ./gen-manpages github.com/docker/cli/man
271-
./gen-manpages --root . --target ./man/man1
272-
'' + lib.optionalString (lib.versionOlder version "23") ''
273-
# Generate legacy pages from markdown
274-
echo "Generate legacy manpages"
275-
./man/md2man-all.sh -q
276-
277-
installManPage man/*/*.[1-9]
278245
'';
279246

280247
passthru = {
@@ -298,26 +265,6 @@ rec {
298265

299266
# Get revisions from
300267
# https://github.com/moby/moby/tree/${version}/hack/dockerfile/install/*
301-
docker_24 = callPackage dockerGen rec {
302-
version = "24.0.9";
303-
cliRev = "v${version}";
304-
cliHash = "sha256-nXIZtE0X1OoQT908IGuRhVHb0tiLbqQLP0Md3YWt0/Q=";
305-
mobyRev = "v${version}";
306-
mobyHash = "sha256-KRS99heyMAPBnjjr7If8TOlJf6v6866S7J3YGkOhFiA=";
307-
runcRev = "v1.1.12";
308-
runcHash = "sha256-N77CU5XiGYIdwQNPFyluXjseTeaYuNJ//OsEUS0g/v0=";
309-
containerdRev = "v1.7.13";
310-
containerdHash = "sha256-y3CYDZbA2QjIn1vyq/p1F1pAVxQHi/0a6hGWZCRWzyk=";
311-
tiniRev = "v0.19.0";
312-
tiniHash = "sha256-ZDKu/8yE5G0RYFJdhgmCdN3obJNyRWv6K/Gd17zc1sI=";
313-
knownVulnerabilities = [
314-
"CVE-2024-23651"
315-
"CVE-2024-23652"
316-
"CVE-2024-23653"
317-
"CVE-2024-41110"
318-
];
319-
};
320-
321268
docker_25 = callPackage dockerGen rec {
322269
version = "25.0.6";
323270
cliRev = "v${version}";

pkgs/top-level/aliases.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ mapAliases {
300300
dnnl = throw "'dnnl' has been renamed to/replaced by 'oneDNN'"; # Converted to throw 2024-10-17
301301
dnscrypt-wrapper = throw "dnscrypt-wrapper was removed because it has been effectively unmaintained since 2018. Use DNSCcrypt support in dnsdist instead"; # Added 2024-09-14
302302
docear = throw "Docear was removed because it was unmaintained upstream. JabRef, Zotero, or Mendeley are potential replacements."; # Added 2024-11-02
303+
docker_24 = throw "'docker_24' has been removed because it has been unmaintained since June 2024. Use docker_25 or newer instead."; # Added 2024-12-21
303304
docker-compose_1 = throw "'docker-compose_1' has been removed because it has been unmaintained since May 2021. Use docker-compose instead."; # Added 2024-07-29
304305
docker-distribution = distribution; # Added 2023-12-26
305306
dolphin-emu-beta = dolphin-emu; # Added 2023-02-11

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13425,7 +13425,7 @@ with pkgs;
1342513425
};
1342613426

1342713427
inherit (callPackage ../applications/virtualization/docker {})
13428-
docker_24 docker_25 docker_26 docker_27;
13428+
docker_25 docker_26 docker_27;
1342913429

1343013430
docker = docker_27;
1343113431
docker-client = docker.override { clientOnly = true; };

0 commit comments

Comments
 (0)