Browse code

Dockerfile: update debian frozen image to trixie-slim

docker buildx imagetools inspect docker.io/library/debian:trixie-slim
Name: docker.io/library/debian:trixie-slim
MediaType: application/vnd.oci.image.index.v1+json
Digest: sha256:c85a2732e97694ea77237c61304b3bb410e0e961dd6ee945997a06c788c545bb

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2025/08/14 08:31:41
Showing 8 changed files
... ...
@@ -113,7 +113,7 @@ ARG TARGETVARIANT
113 113
 RUN /download-frozen-image-v2.sh /build \
114 114
         busybox:latest@sha256:95cf004f559831017cdf4628aaf1bb30133677be8702a8c5f2994629f637a209 \
115 115
         busybox:glibc@sha256:1f81263701cddf6402afe9f33fca0266d9fff379e59b1748f33d3072da71ee85 \
116
-        debian:bookworm-slim@sha256:2bc5c236e9b262645a323e9088dfa3bb1ecb16cc75811daf40a23a824d665be9 \
116
+        debian:trixie-slim@sha256:c85a2732e97694ea77237c61304b3bb410e0e961dd6ee945997a06c788c545bb \
117 117
         hello-world:latest@sha256:d58e752213a51785838f9eed2b7a498ffa1cb3aa7f946dda11af39286c3db9a9 \
118 118
         arm32v7/hello-world:latest@sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1 \
119 119
         hello-world:amd64@sha256:90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042 \
... ...
@@ -1086,7 +1086,7 @@ func (s *DockerDaemonSuite) TestDaemonNoSpaceLeftOnDeviceError(c *testing.T) {
1086 1086
 	defer s.d.Stop(c)
1087 1087
 
1088 1088
 	// pull a repository large enough to overfill the mounted filesystem
1089
-	pullOut, err := s.d.Cmd("pull", "debian:bookworm-slim")
1089
+	pullOut, err := s.d.Cmd("pull", "debian:trixie-slim")
1090 1090
 	assert.Check(c, err != nil)
1091 1091
 	assert.Check(c, is.Contains(pullOut, "no space left on device"))
1092 1092
 }
... ...
@@ -1597,7 +1597,7 @@ func (s *DockerCLINetworkSuite) TestEmbeddedDNSInvalidInput(c *testing.T) {
1597 1597
 	cli.DockerCmd(c, "network", "create", "-d", "bridge", "nw1")
1598 1598
 
1599 1599
 	// Sending garbage to embedded DNS shouldn't crash the daemon
1600
-	cli.DockerCmd(c, "run", "-i", "--net=nw1", "--name=c1", "debian:bookworm-slim", "bash", "-c", "echo InvalidQuery > /dev/udp/127.0.0.11/53")
1600
+	cli.DockerCmd(c, "run", "-i", "--net=nw1", "--name=c1", "debian:trixie-slim", "bash", "-c", "echo InvalidQuery > /dev/udp/127.0.0.11/53")
1601 1601
 }
1602 1602
 
1603 1603
 func (s *DockerCLINetworkSuite) TestDockerNetworkConnectFailsNoInspectChange(c *testing.T) {
... ...
@@ -2805,7 +2805,7 @@ func (s *DockerCLIRunSuite) TestRunUnshareProc(c *testing.T) {
2805 2805
 
2806 2806
 	go func() {
2807 2807
 		name := "acidburn"
2808
-		out, _, err := dockerCmdWithError("run", "--name", name, "--security-opt", "seccomp=unconfined", "debian:bookworm-slim", "unshare", "-p", "-m", "-f", "-r", "--mount-proc=/proc", "mount")
2808
+		out, _, err := dockerCmdWithError("run", "--name", name, "--security-opt", "seccomp=unconfined", "debian:trixie-slim", "unshare", "-p", "-m", "-f", "-r", "--mount-proc=/proc", "mount")
2809 2809
 		if err == nil ||
2810 2810
 			(!strings.Contains(strings.ToLower(out), "permission denied") && !strings.Contains(strings.ToLower(out), "operation not permitted")) {
2811 2811
 			errChan <- fmt.Errorf("unshare with --mount-proc should have failed with 'permission denied' or 'operation not permitted', got: %s, %v", out, err)
... ...
@@ -2816,7 +2816,7 @@ func (s *DockerCLIRunSuite) TestRunUnshareProc(c *testing.T) {
2816 2816
 
2817 2817
 	go func() {
2818 2818
 		name := "cereal"
2819
-		out, _, err := dockerCmdWithError("run", "--name", name, "--security-opt", "seccomp=unconfined", "debian:bookworm-slim", "unshare", "-p", "-m", "-f", "-r", "mount", "-t", "proc", "none", "/proc")
2819
+		out, _, err := dockerCmdWithError("run", "--name", name, "--security-opt", "seccomp=unconfined", "debian:trixie-slim", "unshare", "-p", "-m", "-f", "-r", "mount", "-t", "proc", "none", "/proc")
2820 2820
 		if err == nil ||
2821 2821
 			(!strings.Contains(strings.ToLower(out), "mount: cannot mount none") && !strings.Contains(strings.ToLower(out), "permission denied") && !strings.Contains(strings.ToLower(out), "operation not permitted")) {
2822 2822
 			errChan <- fmt.Errorf("unshare and mount of /proc should have failed with 'mount: cannot mount none' or 'permission denied', got: %s, %v", out, err)
... ...
@@ -2828,7 +2828,7 @@ func (s *DockerCLIRunSuite) TestRunUnshareProc(c *testing.T) {
2828 2828
 	/* Ensure still fails if running privileged with the default policy */
2829 2829
 	go func() {
2830 2830
 		name := "crashoverride"
2831
-		out, _, err := dockerCmdWithError("run", "--privileged", "--security-opt", "seccomp=unconfined", "--security-opt", "apparmor=docker-default", "--name", name, "debian:bookworm-slim", "unshare", "-p", "-m", "-f", "-r", "mount", "-t", "proc", "none", "/proc")
2831
+		out, _, err := dockerCmdWithError("run", "--privileged", "--security-opt", "seccomp=unconfined", "--security-opt", "apparmor=docker-default", "--name", name, "debian:trixie-slim", "unshare", "-p", "-m", "-f", "-r", "mount", "-t", "proc", "none", "/proc")
2832 2832
 		if err == nil ||
2833 2833
 			(!strings.Contains(strings.ToLower(out), "mount: cannot mount none") && !strings.Contains(strings.ToLower(out), "permission denied") && !strings.Contains(strings.ToLower(out), "operation not permitted")) {
2834 2834
 			errChan <- fmt.Errorf("privileged unshare with apparmor should have failed with 'mount: cannot mount none' or 'permission denied', got: %s, %v", out, err)
... ...
@@ -831,12 +831,12 @@ func (s *DockerCLIRunSuite) TestRunTmpfsMountsWithOptions(c *testing.T) {
831 831
 		assert.Assert(c, is.Contains(out, option))
832 832
 	}
833 833
 
834
-	// We use debian:bookworm-slim as there is no findmnt in busybox. Also the output will be in the format of
834
+	// We use debian:trixie-slim as there is no findmnt in busybox. Also the output will be in the format of
835 835
 	// TARGET PROPAGATION
836 836
 	// /tmp   shared
837 837
 	// so we only capture `shared` here.
838 838
 	expectedOptions = []string{"shared"}
839
-	out = cli.DockerCmd(c, "run", "--tmpfs", "/tmp:shared", "debian:bookworm-slim", "findmnt", "-o", "TARGET,PROPAGATION", "/tmp").Combined()
839
+	out = cli.DockerCmd(c, "run", "--tmpfs", "/tmp:shared", "debian:trixie-slim", "findmnt", "-o", "TARGET,PROPAGATION", "/tmp").Combined()
840 840
 	for _, option := range expectedOptions {
841 841
 		assert.Assert(c, is.Contains(out, option))
842 842
 	}
... ...
@@ -872,7 +872,7 @@ func (s *DockerCLIRunSuite) TestRunSysctls(c *testing.T) {
872 872
 	})
873 873
 }
874 874
 
875
-// TestRunSeccompProfileDenyUnshare checks that 'docker run --security-opt seccomp=/tmp/profile.json debian:bookworm-slim unshare' exits with operation not permitted.
875
+// TestRunSeccompProfileDenyUnshare checks that 'docker run --security-opt seccomp=/tmp/profile.json debian:trixie-slim unshare' exits with operation not permitted.
876 876
 func (s *DockerCLIRunSuite) TestRunSeccompProfileDenyUnshare(c *testing.T) {
877 877
 	testRequires(c, testEnv.IsLocalDaemon, seccompEnabled, Apparmor)
878 878
 	const jsonData = `{
... ...
@@ -895,7 +895,7 @@ func (s *DockerCLIRunSuite) TestRunSeccompProfileDenyUnshare(c *testing.T) {
895 895
 	}
896 896
 	icmd.RunCommand(dockerBinary, "run", "--security-opt", "apparmor=unconfined",
897 897
 		"--security-opt", "seccomp="+tmpFile.Name(),
898
-		"debian:bookworm-slim", "unshare", "-p", "-m", "-f", "-r", "mount", "-t", "proc", "none", "/proc").Assert(c, icmd.Expected{
898
+		"debian:trixie-slim", "unshare", "-p", "-m", "-f", "-r", "mount", "-t", "proc", "none", "/proc").Assert(c, icmd.Expected{
899 899
 		ExitCode: 1,
900 900
 		Err:      "Operation not permitted",
901 901
 	})
... ...
@@ -935,7 +935,7 @@ func (s *DockerCLIRunSuite) TestRunSeccompProfileDenyChmod(c *testing.T) {
935 935
 	})
936 936
 }
937 937
 
938
-// TestRunSeccompProfileDenyUnshareUserns checks that 'docker run debian:bookworm-slim unshare --map-root-user --user sh -c whoami' with a specific profile to
938
+// TestRunSeccompProfileDenyUnshareUserns checks that 'docker run debian:trixie-slim unshare --map-root-user --user sh -c whoami' with a specific profile to
939 939
 // deny unshare of a userns exits with operation not permitted.
940 940
 func (s *DockerCLIRunSuite) TestRunSeccompProfileDenyUnshareUserns(c *testing.T) {
941 941
 	testRequires(c, testEnv.IsLocalDaemon, seccompEnabled, Apparmor)
... ...
@@ -967,7 +967,7 @@ func (s *DockerCLIRunSuite) TestRunSeccompProfileDenyUnshareUserns(c *testing.T)
967 967
 	}
968 968
 	icmd.RunCommand(dockerBinary, "run",
969 969
 		"--security-opt", "apparmor=unconfined", "--security-opt", "seccomp="+tmpFile.Name(),
970
-		"debian:bookworm-slim", "unshare", "--map-root-user", "--user", "sh", "-c", "whoami").Assert(c, icmd.Expected{
970
+		"debian:trixie-slim", "unshare", "--map-root-user", "--user", "sh", "-c", "whoami").Assert(c, icmd.Expected{
971 971
 		ExitCode: 1,
972 972
 		Err:      "Operation not permitted",
973 973
 	})
... ...
@@ -1019,12 +1019,12 @@ func (s *DockerCLIRunSuite) TestRunSeccompProfileAllow32Bit(c *testing.T) {
1019 1019
 	icmd.RunCommand(dockerBinary, "run", "syscall-test", "exit32-test").Assert(c, icmd.Success)
1020 1020
 }
1021 1021
 
1022
-// TestRunSeccompAllowSetrlimit checks that 'docker run debian:bookworm-slim ulimit -v 1048510' succeeds.
1022
+// TestRunSeccompAllowSetrlimit checks that 'docker run debian:trixie-slim ulimit -v 1048510' succeeds.
1023 1023
 func (s *DockerCLIRunSuite) TestRunSeccompAllowSetrlimit(c *testing.T) {
1024 1024
 	testRequires(c, testEnv.IsLocalDaemon, seccompEnabled)
1025 1025
 
1026 1026
 	// ulimit uses setrlimit, so we want to make sure we don't break it
1027
-	icmd.RunCommand(dockerBinary, "run", "debian:bookworm-slim", "bash", "-c", "ulimit -v 1048510").Assert(c, icmd.Success)
1027
+	icmd.RunCommand(dockerBinary, "run", "debian:trixie-slim", "bash", "-c", "ulimit -v 1048510").Assert(c, icmd.Success)
1028 1028
 }
1029 1029
 
1030 1030
 func (s *DockerCLIRunSuite) TestRunSeccompDefaultProfileAcct(c *testing.T) {
... ...
@@ -1329,7 +1329,7 @@ func (s *DockerCLIRunSuite) TestRunSeccompWithDefaultProfile(c *testing.T) {
1329 1329
 	err = os.WriteFile(fileName, b, 0o644)
1330 1330
 	assert.NilError(c, err)
1331 1331
 
1332
-	out, _, err := dockerCmdWithError("run", "--security-opt", "seccomp="+fileName, "debian:bookworm-slim", "unshare", "--map-root-user", "--user", "sh", "-c", "whoami")
1332
+	out, _, err := dockerCmdWithError("run", "--security-opt", "seccomp="+fileName, "debian:trixie-slim", "unshare", "--map-root-user", "--user", "sh", "-c", "whoami")
1333 1333
 	assert.ErrorContains(c, err, "", out)
1334 1334
 	assert.Equal(c, strings.TrimSpace(out), "unshare: unshare failed: Operation not permitted")
1335 1335
 }
... ...
@@ -50,7 +50,7 @@ func ensureSyscallTest(ctx context.Context, t *testing.T) {
50 50
 
51 51
 	dockerFile := filepath.Join(tmp, "Dockerfile")
52 52
 	content := []byte(`
53
-	FROM debian:bookworm-slim
53
+	FROM debian:trixie-slim
54 54
 	COPY . /usr/bin/
55 55
 	`)
56 56
 	err = os.WriteFile(dockerFile, content, 0o600)
... ...
@@ -66,7 +66,7 @@ func ensureSyscallTest(ctx context.Context, t *testing.T) {
66 66
 }
67 67
 
68 68
 func ensureSyscallTestBuild(ctx context.Context, t *testing.T) {
69
-	err := load.FrozenImagesLinux(ctx, testEnv.APIClient(), "debian:bookworm-slim")
69
+	err := load.FrozenImagesLinux(ctx, testEnv.APIClient(), "debian:trixie-slim")
70 70
 	assert.NilError(t, err)
71 71
 
72 72
 	var buildArgs []string
... ...
@@ -104,7 +104,7 @@ func ensureNNPTest(ctx context.Context, t *testing.T) {
104 104
 
105 105
 	dockerfile := filepath.Join(tmp, "Dockerfile")
106 106
 	content := `
107
-	FROM debian:bookworm-slim
107
+	FROM debian:trixie-slim
108 108
 	COPY . /usr/bin
109 109
 	RUN chmod +s /usr/bin/nnp-test
110 110
 	`
... ...
@@ -121,7 +121,7 @@ func ensureNNPTest(ctx context.Context, t *testing.T) {
121 121
 }
122 122
 
123 123
 func ensureNNPTestBuild(ctx context.Context, t *testing.T) {
124
-	err := load.FrozenImagesLinux(ctx, testEnv.APIClient(), "debian:bookworm-slim")
124
+	err := load.FrozenImagesLinux(ctx, testEnv.APIClient(), "debian:trixie-slim")
125 125
 	assert.NilError(t, err)
126 126
 
127 127
 	var buildArgs []string
... ...
@@ -44,7 +44,7 @@ func TestBuildUserNamespaceValidateCapabilitiesAreV2(t *testing.T) {
44 44
 	clientUserRemap := dUserRemap.NewClientT(t)
45 45
 	defer clientUserRemap.Close()
46 46
 
47
-	err := load.FrozenImagesLinux(ctx, clientUserRemap, "debian:bookworm-slim")
47
+	err := load.FrozenImagesLinux(ctx, clientUserRemap, "debian:trixie-slim")
48 48
 	assert.NilError(t, err)
49 49
 
50 50
 	dUserRemapRunning := true
... ...
@@ -56,7 +56,7 @@ func TestBuildUserNamespaceValidateCapabilitiesAreV2(t *testing.T) {
56 56
 	}()
57 57
 
58 58
 	dockerfile := `
59
-		FROM debian:bookworm-slim
59
+		FROM debian:trixie-slim
60 60
 		RUN apt-get update && apt-get install -y libcap2-bin --no-install-recommends
61 61
 		RUN setcap CAP_NET_BIND_SERVICE=+eip /bin/sleep
62 62
 	`
... ...
@@ -19,7 +19,7 @@ var frozenImages = []string{
19 19
 	"busybox:latest",
20 20
 	"busybox:glibc",
21 21
 	"hello-world:frozen",
22
-	"debian:bookworm-slim",
22
+	"debian:trixie-slim",
23 23
 	"hello-world:amd64",
24 24
 	"hello-world:arm64",
25 25
 }