Skip to content

Commit 6af3c4c

Browse files
authored
Merge pull request #21380 from dvdksn/engine-install-syncup
engine: minor improvements to rpm-based installation instructions
2 parents df6f833 + 1514b0d commit 6af3c4c

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

content/manuals/engine/install/centos.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,13 @@ $ sudo yum-config-manager --add-repo {{% param "download-url-base" %}}/docker-ce
145145
2. Start Docker.
146146

147147
```console
148-
$ sudo systemctl start docker
148+
$ sudo systemctl enable --now docker
149149
```
150150

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

content/manuals/engine/install/fedora.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ $ sudo dnf-3 config-manager --add-repo {{% param "download-url-base" %}}/docker-
130130
command to install:
131131

132132
```console
133-
$ sudo dnf -y install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io docker-buildx-plugin docker-compose-plugin
133+
$ sudo dnf install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io docker-buildx-plugin docker-compose-plugin
134134
```
135135

136136
This command installs Docker, but it doesn't start Docker. It also creates a
@@ -142,9 +142,13 @@ $ sudo dnf-3 config-manager --add-repo {{% param "download-url-base" %}}/docker-
142142
2. Start Docker.
143143

144144
```console
145-
$ sudo systemctl start docker
145+
$ sudo systemctl enable --now docker
146146
```
147147

148+
This configures the Docker systemd service to start automatically when you
149+
boot your system. If you don't want Docker to start automatically, use `sudo
150+
systemctl start docker` instead.
151+
148152
3. Verify that the Docker Engine installation is successful by running the
149153
`hello-world` image.
150154

@@ -179,7 +183,7 @@ download a new file each time you want to upgrade Docker Engine.
179183
the Docker package.
180184

181185
```console
182-
$ sudo dnf -y install /path/to/package.rpm
186+
$ sudo dnf install /path/to/package.rpm
183187
```
184188

185189
Docker is installed but not started. The `docker` group is created, but no
@@ -214,8 +218,8 @@ You have now successfully installed and started Docker Engine.
214218
#### Upgrade Docker Engine
215219

216220
To upgrade Docker Engine, download the newer package files and repeat the
217-
[installation procedure](#install-from-a-package), using `dnf -y upgrade`
218-
instead of `dnf -y install`, and point to the new files.
221+
[installation procedure](#install-from-a-package), using `dnf upgrade`
222+
instead of `dnf install`, and point to the new files.
219223

220224
{{< include "install-script.md" >}}
221225

content/manuals/engine/install/rhel.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,13 @@ $ sudo yum-config-manager --add-repo {{% param "download-url-base" %}}/docker-ce
146146
2. Start Docker.
147147

148148
```console
149-
$ sudo systemctl start docker
149+
$ sudo systemctl enable --now docker
150150
```
151151

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

content/manuals/engine/install/sles.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,13 @@ $ sudo zypper addrepo {{% param "download-url-base" %}}/docker-ce.repo
165165
2. Start Docker.
166166

167167
```console
168-
$ sudo systemctl start docker
168+
$ sudo systemctl enable --now docker
169169
```
170170

171+
This configures the Docker systemd service to start automatically when you
172+
boot your system. If you don't want Docker to start automatically, use `sudo
173+
systemctl start docker` instead.
174+
171175
3. Verify that the Docker Engine installation is successful by running the
172176
`hello-world` image.
173177

0 commit comments

Comments
 (0)