Merge pull request #17018 from KatrinaAS/patch-1

docs: Move Post install link to infobox
This commit is contained in:
Chris Chinchilla 2023-04-19 12:01:49 +02:00 committed by GitHub
commit a44087b1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 23 deletions

8
_includes/root-errors.md Normal file
View File

@ -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 youre 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}

View File

@ -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 youre 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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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