From 1ee679125ef3e8ed7071d5f67519fa389c9f4792 Mon Sep 17 00:00:00 2001 From: Chris Chinchilla Date: Tue, 18 Apr 2023 16:25:34 +0200 Subject: [PATCH] Refactor to include and use call out formatting --- _includes/root-errors.md | 7 +++++++ engine/install/centos.md | 6 +----- engine/install/debian.md | 6 +----- engine/install/fedora.md | 5 +---- engine/install/rhel.md | 5 +---- engine/install/sles.md | 5 +---- 6 files changed, 12 insertions(+), 22 deletions(-) create mode 100644 _includes/root-errors.md diff --git a/_includes/root-errors.md b/_includes/root-errors.md new file mode 100644 index 0000000000..93f7b6cbf6 --- /dev/null +++ b/_includes/root-errors.md @@ -0,0 +1,7 @@ +> **Tip** +> +> Receiving errors when trying to run without root? +> +> The `docker` user group exists but contains no users, which is why you’re required +> to use `sudo` to run Docker commands. Continue to [Linux postinstall](linux-postinstall.md) +> to allow non-privileged users to run Docker commands and for other optional configuration steps. diff --git a/engine/install/centos.md b/engine/install/centos.md index c9e09e5209..57c8c0c313 100644 --- a/engine/install/centos.md +++ b/engine/install/centos.md @@ -170,11 +170,7 @@ $ sudo yum-config-manager \ You have now successfully installed and started Docker Engine. -> Receiving errors when trying to run without root? -> -> The `docker` user group exists but contains no users, which is why you’re required -> to use `sudo` to run Docker commands. Continue to [Linux postinstall](linux-postinstall.md) -> to allow non-privileged users to run Docker commands and for other optional configuration steps. +{% include root-errors.md %} #### Upgrade Docker Engine diff --git a/engine/install/debian.md b/engine/install/debian.md index 5f807222e8..2124f4ca00 100644 --- a/engine/install/debian.md +++ b/engine/install/debian.md @@ -186,11 +186,7 @@ Raspbian. You have now successfully installed and started Docker Engine. -> Receiving errors when trying to run without root? -> -> The `docker` user group exists but contains no users, which is why you're required -> to use `sudo` to run Docker commands. Continue to [Linux post-install](linux-postinstall.md) -> to allow non-privileged users to run Docker commands and for other optional configuration steps. +{% include root-errors.md %} #### Upgrade Docker Engine diff --git a/engine/install/fedora.md b/engine/install/fedora.md index a083028e36..bd81dea2ea 100644 --- a/engine/install/fedora.md +++ b/engine/install/fedora.md @@ -193,10 +193,7 @@ a new file each time you want to upgrade Docker Engine. This installs and runs Docker Engine. -> Receiving errors when trying to run without root? -> -> Continue to [Linux post-install](linux-postinstall.md) to allow non-privileged users to run Docker commands -> and for other optional configuration steps. +{% include root-errors.md %} #### Upgrade Docker Engine diff --git a/engine/install/rhel.md b/engine/install/rhel.md index 6096d39feb..96084383cc 100644 --- a/engine/install/rhel.md +++ b/engine/install/rhel.md @@ -157,10 +157,7 @@ $ sudo yum-config-manager \ This installs and runs Docker Engine. -> Receiving errors when trying to run without root? -> -> Continue to [Linux post-install](linux-postinstall.md) to allow non-privileged users to run Docker commands -> and for other optional configuration steps. +{% include root-errors.md %} #### Upgrade Docker Engine diff --git a/engine/install/sles.md b/engine/install/sles.md index d62432d41c..bebd29fba1 100644 --- a/engine/install/sles.md +++ b/engine/install/sles.md @@ -175,10 +175,7 @@ $ sudo zypper addrepo {{ download-url-base }}/docker-ce.repo This installs and runs Docker Engine. -> Receiving errors when trying to run without root? -> -> Continue to [Linux post-install](linux-postinstall.md) to allow non-privileged users to run Docker commands -> and for other optional configuration steps. +{% include root-errors.md %} #### Upgrade Docker Engine