diff --git a/_includes/root-errors.md b/_includes/root-errors.md new file mode 100644 index 0000000000..d37cb4084e --- /dev/null +++ b/_includes/root-errors.md @@ -0,0 +1,8 @@ +> **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](/engine/install/linux-postinstall) +> to allow non-privileged users to run Docker commands and for other optional configuration steps. +{: .tip} \ No newline at end of file diff --git a/engine/install/centos.md b/engine/install/centos.md index f77b709758..57c8c0c313 100644 --- a/engine/install/centos.md +++ b/engine/install/centos.md @@ -168,7 +168,9 @@ $ sudo yum-config-manager \ This command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits. -You have now successfully installed and started Docker Engine. 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. +You have now successfully installed and started Docker Engine. + +{% include root-errors.md %} #### Upgrade Docker Engine diff --git a/engine/install/debian.md b/engine/install/debian.md index 34e9be2695..3f02c8a49b 100644 --- a/engine/install/debian.md +++ b/engine/install/debian.md @@ -173,11 +173,9 @@ Raspbian. This command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits. -You have now successfully installed and started Docker Engine. 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. +You have now successfully installed and started Docker Engine. + +{% include root-errors.md %} #### Upgrade Docker Engine diff --git a/engine/install/fedora.md b/engine/install/fedora.md index e6e4c12327..bd81dea2ea 100644 --- a/engine/install/fedora.md +++ b/engine/install/fedora.md @@ -191,10 +191,9 @@ a new file each time you want to upgrade Docker Engine. This command downloads a test image and runs it in a container. When the container runs, it prints a message and exits. -This installs and runs Docker Engine. Use `sudo` to run Docker commands. -Continue to [Post-installation steps for Linux](linux-postinstall.md) to allow -non-privileged users to run Docker commands and for other optional configuration -steps. +This installs and runs Docker Engine. + +{% include root-errors.md %} #### Upgrade Docker Engine diff --git a/engine/install/rhel.md b/engine/install/rhel.md index 8f6243f272..96084383cc 100644 --- a/engine/install/rhel.md +++ b/engine/install/rhel.md @@ -155,10 +155,9 @@ $ sudo yum-config-manager \ This command downloads a test image and runs it in a container. When the container runs, it prints a message and exits. -This installs and runs Docker Engine. 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. +This installs and runs Docker Engine. + +{% include root-errors.md %} #### Upgrade Docker Engine diff --git a/engine/install/sles.md b/engine/install/sles.md index 77327e9093..bebd29fba1 100644 --- a/engine/install/sles.md +++ b/engine/install/sles.md @@ -173,10 +173,9 @@ $ sudo zypper addrepo {{ download-url-base }}/docker-ce.repo This command downloads a test image and runs it in a container. When the container runs, it prints a message and exits. -This installs and runs Docker Engine. 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. +This installs and runs Docker Engine. + +{% include root-errors.md %} #### Upgrade Docker Engine diff --git a/engine/install/ubuntu.md b/engine/install/ubuntu.md index dbe2a4add6..d09bae52d7 100644 --- a/engine/install/ubuntu.md +++ b/engine/install/ubuntu.md @@ -169,11 +169,13 @@ Docker from the repository. This command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits. -You have now successfully installed and started Docker Engine. 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. +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. #### Upgrade Docker Engine