Skip to content

Commit 8ff0f39

Browse files
authored
Merge pull request #21383 from docker/published-update
publish updates from main
2 parents 13677e8 + cf53465 commit 8ff0f39

File tree

11 files changed

+244
-142
lines changed

11 files changed

+244
-142
lines changed

_vale/config/vocabularies/Docker/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Jamf
7676
JFrog
7777
JetBrains
7878
Kerberos
79+
[Kk]eyrings?
7980
Kitematic
8081
Kubernetes
8182
LTS

content/manuals/build/buildkit/dockerfile-release-notes.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ issues, and bug fixes in [Dockerfile reference](/reference/dockerfile.md).
1313

1414
For usage, see the [Dockerfile frontend syntax](frontend.md) page.
1515

16+
## 1.11.1
17+
18+
{{< release-date date="2024-11-08" >}}
19+
20+
The full release note for this release is available
21+
[on GitHub](https://github.com/moby/buildkit/releases/tag/dockerfile%2F1.11.1).
22+
23+
```dockerfile
24+
# syntax=docker/dockerfile:1.11.1
25+
```
26+
27+
- Fix regression when using the `ONBUILD` instruction in stages inherited within the same Dockerfile. [moby/buildkit#5490]
28+
29+
[moby/buildkit#5490]: https://github.com/moby/buildkit/pull/5490
30+
1631
## 1.11.0
1732

1833
{{< release-date date="2024-10-30" >}}

content/manuals/build/ci/github-actions/multi-platform.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,59 @@ jobs:
4545
tags: user/app:latest
4646
```
4747
48+
## Build and load multi-platform images
49+
50+
The default Docker setup for GitHub Actions runners does not support loading
51+
multi-platform images to the local image store of the runner after building
52+
them. To load a multi-platform image, you need to enable the containerd image
53+
store option for the Docker Engine.
54+
55+
There is no way to configure the default Docker setup in the GitHub Actions
56+
runners directly, but you can use the `crazy-max/ghaction-setup-docker` action
57+
to customize the Docker Engine and CLI settings for a job.
58+
59+
The following example workflow enables the containerd image store, builds a
60+
multi-platform image, and loads the results into the GitHub runner's local
61+
image store.
62+
63+
```yaml
64+
name: ci
65+
66+
on:
67+
push:
68+
69+
jobs:
70+
docker:
71+
runs-on: ubuntu-latest
72+
steps:
73+
- name: Set up Docker
74+
uses: crazy-max/ghaction-setup-docker@v3
75+
with:
76+
daemon-config: |
77+
{
78+
"debug": true,
79+
"features": {
80+
"containerd-snapshotter": true
81+
}
82+
}
83+
84+
- name: Set up QEMU
85+
uses: docker/setup-qemu-action@v3
86+
87+
- name: Login to Docker Hub
88+
uses: docker/login-action@v3
89+
with:
90+
username: ${{ vars.DOCKERHUB_USERNAME }}
91+
password: ${{ secrets.DOCKERHUB_TOKEN }}
92+
93+
- name: Build and push
94+
uses: docker/build-push-action@v6
95+
with:
96+
platforms: linux/amd64,linux/arm64
97+
load: true
98+
tags: user/app:latest
99+
```
100+
48101
## Distribute build across multiple runners
49102

50103
In the previous example, each platform is built on the same runner which can

content/manuals/engine/install/centos.md

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Learn how to install Docker Engine on CentOS. These instructions cover
33
the different installation methods, how to uninstall, and next steps.
4-
keywords: requirements, yum, installation, centos, install, uninstall, docker engine, upgrade, update
4+
keywords: requirements, dnf, yum, installation, centos, install, uninstall, docker engine, upgrade, update
55
title: Install Docker Engine on CentOS
66
linkTitle: CentOS
77
weight: 60
@@ -36,12 +36,14 @@ default. If you have disabled it, you need to re-enable it.
3636

3737
### Uninstall old versions
3838

39-
Older versions of Docker went by `docker` or `docker-engine`.
40-
Uninstall any such older versions before attempting to install a new version,
41-
along with associated dependencies.
39+
Before you can install Docker Engine, you need to uninstall any conflicting packages.
40+
41+
Your Linux distribution may provide unofficial Docker packages, which may conflict
42+
with the official packages provided by Docker. You must uninstall these packages
43+
before you install the official version of Docker Engine.
4244

4345
```console
44-
$ sudo yum remove docker \
46+
$ sudo dnf remove docker \
4547
docker-client \
4648
docker-client-latest \
4749
docker-common \
@@ -51,7 +53,7 @@ $ sudo yum remove docker \
5153
docker-engine
5254
```
5355

54-
`yum` might report that you have none of these packages installed.
56+
`dnf` might report that you have none of these packages installed.
5557

5658
Images, containers, volumes, and networks stored in `/var/lib/docker/` aren't
5759
automatically removed when you uninstall Docker.
@@ -81,25 +83,25 @@ Docker from the repository.
8183

8284
#### Set up the repository
8385

84-
Install the `yum-utils` package (which provides the `yum-config-manager`
85-
utility) and set up the repository.
86+
Install the `dnf-plugins-core` package (which provides the commands to manage
87+
your DNF repositories) and set up the repository.
8688

8789
```console
88-
$ sudo yum install -y yum-utils
89-
$ sudo yum-config-manager --add-repo {{% param "download-url-base" %}}/docker-ce.repo
90+
$ sudo dnf -y install dnf-plugins-core
91+
$ sudo dnf config-manager --add-repo {{% param "download-url-base" %}}/docker-ce.repo
9092
```
9193

9294
#### Install Docker Engine
9395

94-
1. Install Docker Engine, containerd, and Docker Compose:
96+
1. Install the Docker packages.
9597

9698
{{< tabs >}}
9799
{{< tab name="Latest" >}}
98100

99101
To install the latest version, run:
100102

101103
```console
102-
$ sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
104+
$ sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
103105
```
104106

105107
If prompted to accept the GPG key, verify that the fingerprint matches
@@ -115,7 +117,7 @@ $ sudo yum-config-manager --add-repo {{% param "download-url-base" %}}/docker-ce
115117
the repository:
116118

117119
```console
118-
$ yum list docker-ce --showduplicates | sort -r
120+
$ dnf list docker-ce --showduplicates | sort -r
119121

120122
docker-ce.x86_64 3:27.3.1-1.el9 docker-ce-stable
121123
docker-ce.x86_64 3:27.3.0-1.el9 docker-ce-stable
@@ -133,7 +135,7 @@ $ sudo yum-config-manager --add-repo {{% param "download-url-base" %}}/docker-ce
133135
command to install:
134136

135137
```console
136-
$ sudo yum install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io docker-buildx-plugin docker-compose-plugin
138+
$ sudo dnf install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io docker-buildx-plugin docker-compose-plugin
137139
```
138140

139141
This command installs Docker, but it doesn't start Docker. It also creates a
@@ -142,14 +144,17 @@ $ sudo yum-config-manager --add-repo {{% param "download-url-base" %}}/docker-ce
142144
{{< /tab >}}
143145
{{< /tabs >}}
144146

145-
2. Start Docker.
147+
2. Start Docker Engine.
146148

147149
```console
148-
$ sudo systemctl start docker
150+
$ sudo systemctl enable --now docker
149151
```
150152

151-
3. Verify that the Docker Engine installation is successful by running the
152-
`hello-world` image.
153+
This configures the Docker systemd service to start automatically when you
154+
boot your system. If you don't want Docker to start automatically, use `sudo
155+
systemctl start docker` instead.
156+
157+
3. Verify that the installation is successful by running the `hello-world` image:
153158

154159
```console
155160
$ sudo docker run hello-world
@@ -182,20 +187,23 @@ download a new file each time you want to upgrade Docker Engine.
182187
the Docker package.
183188

184189
```console
185-
$ sudo yum install /path/to/package.rpm
190+
$ sudo dnf install /path/to/package.rpm
186191
```
187192

188193
Docker is installed but not started. The `docker` group is created, but no
189194
users are added to the group.
190195

191-
3. Start Docker.
196+
3. Start Docker Engine.
192197

193198
```console
194-
$ sudo systemctl start docker
199+
$ sudo systemctl enable --now docker
195200
```
196201

197-
4. Verify that the Docker Engine installation is successful by running the
198-
`hello-world` image.
202+
This configures the Docker systemd service to start automatically when you
203+
boot your system. If you don't want Docker to start automatically, use `sudo
204+
systemctl start docker` instead.
205+
206+
4. Verify that the installation is successful by running the `hello-world` image:
199207

200208
```console
201209
$ sudo docker run hello-world
@@ -211,8 +219,8 @@ You have now successfully installed and started Docker Engine.
211219
#### Upgrade Docker Engine
212220

213221
To upgrade Docker Engine, download the newer package files and repeat the
214-
[installation procedure](#install-from-a-package), using `yum -y upgrade`
215-
instead of `yum -y install`, and point to the new files.
222+
[installation procedure](#install-from-a-package), using `dnf upgrade`
223+
instead of `dnf install`, and point to the new files.
216224

217225
{{< include "install-script.md" >}}
218226

@@ -221,7 +229,7 @@ instead of `yum -y install`, and point to the new files.
221229
1. Uninstall the Docker Engine, CLI, containerd, and Docker Compose packages:
222230

223231
```console
224-
$ sudo yum remove docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
232+
$ sudo dnf remove docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
225233
```
226234

227235
2. Images, containers, volumes, or custom configuration files on your host

content/manuals/engine/install/debian.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ and ppc64le (ppc64el) architectures.
5252

5353
Before you can install Docker Engine, you need to uninstall any conflicting packages.
5454

55-
Distro maintainers provide unofficial distributions of Docker packages in
56-
their repositories. You must uninstall these packages before you can install the
57-
official version of Docker Engine.
55+
Your Linux distribution may provide unofficial Docker packages, which may conflict
56+
with the official packages provided by Docker. You must uninstall these packages
57+
before you install the official version of Docker Engine.
5858

5959
The unofficial packages to uninstall are:
6060

@@ -170,8 +170,7 @@ Docker from the repository.
170170
{{< /tab >}}
171171
{{< /tabs >}}
172172

173-
3. Verify that the installation is successful by running the `hello-world`
174-
image:
173+
3. Verify that the installation is successful by running the `hello-world` image:
175174

176175
```console
177176
$ sudo docker run hello-world
@@ -226,8 +225,7 @@ download a new file each time you want to upgrade Docker Engine.
226225

227226
The Docker daemon starts automatically.
228227

229-
6. Verify that the Docker Engine installation is successful by running the
230-
`hello-world` image:
228+
6. Verify that the installation is successful by running the `hello-world` image:
231229

232230
```console
233231
$ sudo service docker start
@@ -250,26 +248,26 @@ To upgrade Docker Engine, download the newer package files and repeat the
250248

251249
## Uninstall Docker Engine
252250

253-
1. Uninstall the Docker Engine, CLI, containerd, and Docker Compose packages:
251+
1. Uninstall the Docker Engine, CLI, containerd, and Docker Compose packages:
254252

255-
```console
256-
$ sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
257-
```
253+
```console
254+
$ sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
255+
```
258256

259-
2. Images, containers, volumes, or custom configuration files on your host
260-
aren't automatically removed. To delete all images, containers, and volumes:
257+
2. Images, containers, volumes, or custom configuration files on your host
258+
aren't automatically removed. To delete all images, containers, and volumes:
261259

262-
```console
263-
$ sudo rm -rf /var/lib/docker
264-
$ sudo rm -rf /var/lib/containerd
265-
```
260+
```console
261+
$ sudo rm -rf /var/lib/docker
262+
$ sudo rm -rf /var/lib/containerd
263+
```
266264

267-
3. Remove source list and keyrings
265+
3. Remove source list and keyrings
268266

269-
```console
270-
$ sudo rm /etc/apt/sources.list.d/docker.list
271-
$ sudo rm /etc/apt/keyrings/docker.asc
272-
```
267+
```console
268+
$ sudo rm /etc/apt/sources.list.d/docker.list
269+
$ sudo rm /etc/apt/keyrings/docker.asc
270+
```
273271

274272
You have to delete any edited configuration files manually.
275273

0 commit comments

Comments
 (0)