From 1514b0dc3662970121091028459abb3ab496cf57 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:17:11 +0100 Subject: [PATCH] engine: enable the systemd service by default after installation Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/manuals/engine/install/centos.md | 6 +++++- content/manuals/engine/install/fedora.md | 6 +++++- content/manuals/engine/install/rhel.md | 6 +++++- content/manuals/engine/install/sles.md | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/content/manuals/engine/install/centos.md b/content/manuals/engine/install/centos.md index 50529472c1..83e744e1ac 100644 --- a/content/manuals/engine/install/centos.md +++ b/content/manuals/engine/install/centos.md @@ -145,9 +145,13 @@ $ sudo yum-config-manager --add-repo {{% param "download-url-base" %}}/docker-ce 2. Start Docker. ```console - $ sudo systemctl start docker + $ sudo systemctl enable --now docker ``` + This configures the Docker systemd service to start automatically when you + boot your system. If you don't want Docker to start automatically, use `sudo + systemctl start docker` instead. + 3. Verify that the Docker Engine installation is successful by running the `hello-world` image. diff --git a/content/manuals/engine/install/fedora.md b/content/manuals/engine/install/fedora.md index c02833a002..5af647a575 100644 --- a/content/manuals/engine/install/fedora.md +++ b/content/manuals/engine/install/fedora.md @@ -142,9 +142,13 @@ $ sudo dnf-3 config-manager --add-repo {{% param "download-url-base" %}}/docker- 2. Start Docker. ```console - $ sudo systemctl start docker + $ sudo systemctl enable --now docker ``` + This configures the Docker systemd service to start automatically when you + boot your system. If you don't want Docker to start automatically, use `sudo + systemctl start docker` instead. + 3. Verify that the Docker Engine installation is successful by running the `hello-world` image. diff --git a/content/manuals/engine/install/rhel.md b/content/manuals/engine/install/rhel.md index c7a6ad09b8..210235ef43 100644 --- a/content/manuals/engine/install/rhel.md +++ b/content/manuals/engine/install/rhel.md @@ -146,9 +146,13 @@ $ sudo yum-config-manager --add-repo {{% param "download-url-base" %}}/docker-ce 2. Start Docker. ```console - $ sudo systemctl start docker + $ sudo systemctl enable --now docker ``` + This configures the Docker systemd service to start automatically when you + boot your system. If you don't want Docker to start automatically, use `sudo + systemctl start docker` instead. + 3. Verify that the Docker Engine installation is successful by running the `hello-world` image. diff --git a/content/manuals/engine/install/sles.md b/content/manuals/engine/install/sles.md index 39f73b54cf..58eeec76bf 100644 --- a/content/manuals/engine/install/sles.md +++ b/content/manuals/engine/install/sles.md @@ -165,9 +165,13 @@ $ sudo zypper addrepo {{% param "download-url-base" %}}/docker-ce.repo 2. Start Docker. ```console - $ sudo systemctl start docker + $ sudo systemctl enable --now docker ``` + This configures the Docker systemd service to start automatically when you + boot your system. If you don't want Docker to start automatically, use `sudo + systemctl start docker` instead. + 3. Verify that the Docker Engine installation is successful by running the `hello-world` image.