Skip to content

Commit 1514b0d

Browse files
committed
engine: enable the systemd service by default after installation
Signed-off-by: David Karlsson <[email protected]>
1 parent fde4750 commit 1514b0d

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

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)