Skip to content

Commit 196062f

Browse files
authored
remove references to EOL distros and images (#22674)
- replace some examples using EOL alpine versions - replace some examples using EOL ubuntu versions <!--Delete sections as needed --> ## Description <!-- Tell us what you did and why --> ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 21a5f64 commit 196062f

File tree

8 files changed

+27
-27
lines changed

8 files changed

+27
-27
lines changed

content/guides/go-prometheus-monitoring/containerize.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ COPY . .
4141
RUN go build -o /app .
4242

4343
# Final lightweight stage
44-
FROM alpine:3.17 AS final
44+
FROM alpine:3.21 AS final
4545

4646
# Copy the compiled binary from the builder stage
4747
COPY --from=builder /app /bin/app
@@ -63,7 +63,7 @@ The Dockerfile consists of two stages:
6363

6464
2. **Final stage**: This stage uses the official Alpine image as the base and copies the compiled binary from the build stage. It also exposes the application's port and runs the application.
6565

66-
You use the `alpine:3.17` image as the base image for the final stage. You copy the compiled binary from the build stage to the final image. You expose the application's port using the `EXPOSE` instruction and run the application using the `CMD` instruction.
66+
You use the `alpine:3.21` image as the base image for the final stage. You copy the compiled binary from the build stage to the final image. You expose the application's port using the `EXPOSE` instruction and run the application using the `CMD` instruction.
6767

6868
Apart from the multi-stage build, the Dockerfile also follows best practices such as using the official images, setting the working directory, and copying only the necessary files to the final image. You can further optimize the Dockerfile by other best practices.
6969

content/manuals/build/building/base-images.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,17 @@ which you can also use to build Ubuntu images.
102102
For example, to create an Ubuntu base image:
103103

104104
```dockerfile
105-
$ sudo debootstrap focal focal > /dev/null
106-
$ sudo tar -C focal -c . | docker import - focal
105+
$ sudo debootstrap noble noble > /dev/null
106+
$ sudo tar -C noble -c . | docker import - noble
107107

108108
sha256:81ec9a55a92a5618161f68ae691d092bf14d700129093158297b3d01593f4ee3
109109

110-
$ docker run focal cat /etc/lsb-release
110+
$ docker run noble cat /etc/lsb-release
111111

112112
DISTRIB_ID=Ubuntu
113-
DISTRIB_RELEASE=20.04
114-
DISTRIB_CODENAME=focal
115-
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"
113+
DISTRIB_RELEASE=24.04
114+
DISTRIB_CODENAME=noble
115+
DISTRIB_DESCRIPTION="Ubuntu 24.04.2 LTS"
116116
```
117117

118118
There are more example scripts for creating base images in

content/manuals/build/building/best-practices.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ image. This is useful because it lets publishers update tags to point to
192192
newer versions of an image. And as an image consumer, it means you
193193
automatically get the new version when you re-build your image.
194194

195-
For example, if you specify `FROM alpine:3.19` in your Dockerfile, `3.19`
196-
resolves to the latest patch version for `3.19`.
195+
For example, if you specify `FROM alpine:3.21` in your Dockerfile, `3.21`
196+
resolves to the latest patch version for `3.21`.
197197

198198
```dockerfile
199199
# syntax=docker/dockerfile:1
200-
FROM alpine:3.19
200+
FROM alpine:3.21
201201
```
202202

203-
At one point in time, the `3.19` tag might point to version 3.19.1 of the
203+
At one point in time, the `3.21` tag might point to version 3.21.1 of the
204204
image. If you rebuild the image 3 months later, the same tag might point to a
205205
different version, such as 3.19.4. This publishing workflow is best practice,
206206
and most publishers use this tagging strategy, but it isn't enforced.
@@ -213,16 +213,16 @@ To fully secure your supply chain integrity, you can pin the image version to a
213213
specific digest. By pinning your images to a digest, you're guaranteed to
214214
always use the same image version, even if a publisher replaces the tag with a
215215
new image. For example, the following Dockerfile pins the Alpine image to the
216-
same tag as earlier, `3.19`, but this time with a digest reference as well.
216+
same tag as earlier, `3.21`, but this time with a digest reference as well.
217217

218218
```dockerfile
219219
# syntax=docker/dockerfile:1
220-
FROM alpine:3.19@sha256:13b7e62e8df80264dbb747995705a986aa530415763a6c58f84a3ca8af9a5bcd
220+
FROM alpine:3.21@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
221221
```
222222

223-
With this Dockerfile, even if the publisher updates the `3.19` tag, your builds
223+
With this Dockerfile, even if the publisher updates the `3.21` tag, your builds
224224
would still use the pinned image version:
225-
`13b7e62e8df80264dbb747995705a986aa530415763a6c58f84a3ca8af9a5bcd`.
225+
`a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c`.
226226

227227
While this helps you avoid unexpected changes, it's also more tedious to have
228228
to look up and include the image digest for base image versions manually each

content/manuals/build/images/build-variables.svg

Lines changed: 1 addition & 1 deletion
Loading

content/manuals/build/metadata/attestations/slsa-provenance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ extract the full source code of the Dockerfile used to build the image:
175175
```console
176176
$ docker buildx imagetools inspect <namespace>/<image>:<version> \
177177
--format '{{ range (index .Provenance.SLSA.metadata "https://mobyproject.org/buildkit@v1#metadata").source.infos }}{{ if eq .filename "Dockerfile" }}{{ .data }}{{ end }}{{ end }}' | base64 -d
178-
FROM ubuntu:20.04
178+
FROM ubuntu:24.04
179179
RUN apt-get update
180180
...
181181
```

content/manuals/compose/how-tos/gpu-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For more information on these properties, see the [Compose Deploy Specification]
3939
```yaml
4040
services:
4141
test:
42-
image: nvidia/cuda:12.3.1-base-ubuntu20.04
42+
image: nvidia/cuda:12.9.0-base-ubuntu22.04
4343
command: nvidia-smi
4444
deploy:
4545
resources:

content/manuals/docker-hub/image-library/trusted-content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Docker Hub for examples on how to install packages if you are unfamiliar.
137137
### Codenames
138138

139139
Tags with words that look like Toy Story characters (for example, `bookworm`,
140-
`bullseye`, and `trixie`) or adjectives (such as `focal`, `jammy`, and
140+
`bullseye`, and `trixie`) or adjectives (such as `jammy`, and
141141
`noble`), indicate the codename of the Linux distribution they use as a base
142142
image. Debian release codenames are [based on Toy Story characters](https://en.wikipedia.org/wiki/Debian_version_history#Naming_convention),
143143
and Ubuntu's take the form of "Adjective Animal". For example, the

content/manuals/engine/cli/filter.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ output of the `docker images` command to only print `alpine` images.
3030
```console
3131
$ docker images
3232
REPOSITORY TAG IMAGE ID CREATED SIZE
33-
ubuntu 20.04 33a5cc25d22c 36 minutes ago 101MB
34-
ubuntu 18.04 152dc042452c 36 minutes ago 88.1MB
35-
alpine 3.16 a8cbb8c69ee7 40 minutes ago 8.67MB
33+
ubuntu 24.04 33a5cc25d22c 36 minutes ago 101MB
34+
ubuntu 22.04 152dc042452c 36 minutes ago 88.1MB
35+
alpine 3.21 a8cbb8c69ee7 40 minutes ago 8.67MB
3636
alpine latest 7144f7bab3d4 40 minutes ago 11.7MB
3737
busybox uclibc 3e516f71d880 48 minutes ago 2.4MB
3838
busybox glibc 7338d0c72c65 48 minutes ago 6.09MB
3939
$ docker images --filter reference=alpine
4040
REPOSITORY TAG IMAGE ID CREATED SIZE
41-
alpine 3.16 a8cbb8c69ee7 40 minutes ago 8.67MB
41+
alpine 3.21 a8cbb8c69ee7 40 minutes ago 8.67MB
4242
alpine latest 7144f7bab3d4 40 minutes ago 11.7MB
4343
```
4444

@@ -58,9 +58,9 @@ following example shows how to print all images that match `alpine:latest` or
5858
```console
5959
$ docker images
6060
REPOSITORY TAG IMAGE ID CREATED SIZE
61-
ubuntu 20.04 33a5cc25d22c 2 hours ago 101MB
62-
ubuntu 18.04 152dc042452c 2 hours ago 88.1MB
63-
alpine 3.16 a8cbb8c69ee7 2 hours ago 8.67MB
61+
ubuntu 24.04 33a5cc25d22c 2 hours ago 101MB
62+
ubuntu 22.04 152dc042452c 2 hours ago 88.1MB
63+
alpine 3.21 a8cbb8c69ee7 2 hours ago 8.67MB
6464
alpine latest 7144f7bab3d4 2 hours ago 11.7MB
6565
busybox uclibc 3e516f71d880 2 hours ago 2.4MB
6666
busybox glibc 7338d0c72c65 2 hours ago 6.09MB

0 commit comments

Comments
 (0)