1
0
mirror of https://github.com/docker/cli.git synced 2026-01-22 03:22:01 +03:00

reference/run: Clarify the use of numeric UIDs

it is possible to pass an UID that has not been created inside the container, clarify this in the docs.
This should fix issue #14795

Signed-off-by: Kai Blin <kai@samba.org>
Upstream-commit: 7cc23c78c0
Component: cli
This commit is contained in:
Kai Blin
2015-08-12 06:34:37 +02:00
committed by Tibor Vass
parent 519334c5f4
commit 99a3735fd0

View File

@@ -1142,10 +1142,11 @@ volume mounted on the host).
### USER
The default user within a container is `root` (id = 0), but if the
developer created additional users, those are accessible too. The
developer can set a default user to run the first process with the
Dockerfile `USER` instruction, but the operator can override it:
The default user within a container is `root` (id = 0), but if the developer
created additional users, those are accessible by name. When passing a numeric
ID, the user doesn't have to exist in the container. The developer can set a
default user to run the first process with the Dockerfile `USER` instruction,
but the operator can override it:
-u="": Username or UID