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 7e71238835..5af647a575 100644 --- a/content/manuals/engine/install/fedora.md +++ b/content/manuals/engine/install/fedora.md @@ -130,7 +130,7 @@ $ sudo dnf-3 config-manager --add-repo {{% param "download-url-base" %}}/docker- command to install: ```console - $ sudo dnf -y install docker-ce- docker-ce-cli- containerd.io docker-buildx-plugin docker-compose-plugin + $ sudo dnf install docker-ce- docker-ce-cli- containerd.io docker-buildx-plugin docker-compose-plugin ``` 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- 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. @@ -179,7 +183,7 @@ download a new file each time you want to upgrade Docker Engine. the Docker package. ```console - $ sudo dnf -y install /path/to/package.rpm + $ sudo dnf install /path/to/package.rpm ``` 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. #### Upgrade Docker Engine To upgrade Docker Engine, download the newer package files and repeat the -[installation procedure](#install-from-a-package), using `dnf -y upgrade` -instead of `dnf -y install`, and point to the new files. +[installation procedure](#install-from-a-package), using `dnf upgrade` +instead of `dnf install`, and point to the new files. {{< include "install-script.md" >}} 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.