Merge pull request #12647 from benmccann/rootless-install

Reduce duplication by referencing existing rootless Docker docs
This commit is contained in:
Sebastiaan van Stijn 2021-04-24 11:15:18 +02:00 committed by GitHub
commit 0ea0a6173f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 21 deletions

View File

@ -43,33 +43,14 @@ $ sudo sh get-docker.sh
<...>
```
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:
```console
$ sudo usermod -aG docker <your-user>
```
Remember to log out and back in for this to take effect!
> **Warning**:
>
> Adding a user to the "docker" group grants them the ability to run containers
> which can be used to obtain root privileges on the Docker host. Refer to
> [Docker Daemon Attack Surface](/engine/security/#docker-daemon-attack-surface)
> for more information.
{:.warning}
If you would like to use Docker as a non-root user please see the
[post-installation steps for Linux](linux-postinstall.md#manage-docker-as-a-non-root-user).
Docker Engine - Community is installed. It starts automatically on `DEB`-based distributions. On
`RPM`-based distributions, you need to start it manually using the appropriate
`systemctl` or `service` command. As the message indicates, non-root users can't
run Docker commands by default.
> **Note**:
>
> To install Docker without root privileges, see
> [Run the Docker daemon as a non-root user (Rootless mode)](/engine/security/rootless/).
#### Upgrade Docker after using the convenience script
If you installed Docker using the convenience script, you should upgrade Docker