rootless: update example to use v23.0

Also remove mentions of obsolete version of docker that introduced rootless.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-05-03 09:40:27 +02:00
parent 9fa5f6973d
commit 6cf04bb21f
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 4 deletions

View File

@ -11,9 +11,6 @@ the container runtime.
Rootless mode does not require root privileges even during the installation of Rootless mode does not require root privileges even during the installation of
the Docker daemon, as long as the [prerequisites](#prerequisites) are met. the Docker daemon, as long as the [prerequisites](#prerequisites) are met.
Rootless mode was introduced in Docker Engine v19.03 as an experimental feature.
Rootless mode graduated from experimental in Docker Engine v20.10.
## How it works ## How it works
Rootless mode executes the Docker daemon and containers inside a user namespace. Rootless mode executes the Docker daemon and containers inside a user namespace.
@ -306,7 +303,7 @@ To run Rootless Docker inside "rootful" Docker, use the `docker:<version>-dind-r
image instead of `docker:<version>-dind`. image instead of `docker:<version>-dind`.
```console ```console
$ docker run -d --name dind-rootless --privileged docker:20.10-dind-rootless $ docker run -d --name dind-rootless --privileged docker:23.0-dind-rootless
``` ```
The `docker:<version>-dind-rootless` image runs as a non-root user (UID 1000). The `docker:<version>-dind-rootless` image runs as a non-root user (UID 1000).