aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorHugo Osvaldo Barrera <hugo@whynothugo.nl>2025-07-23 17:38:06 +0200
committermark9064 <30447455+mark9064@users.noreply.github.com>2025-09-23 16:28:57 +0100
commit957ba59ef328602a2326ecd812f77c736186b529 (patch)
treecbd73787973f6b31ca8caa1333cbca054adaffbb /docker
parent09b1342eaeed8aa39d228315530ee91bca5b31cd (diff)
docs: --user is only required when docker run as root
The --user argument attempts to map the uid of the user inside the container to the user in the host. This works if docker is running as root, but is docker is running as the current user, then the uid in the container is mapped to a surrogate uid on the host, and this surrogate user does not have permissions to complete the build process. Clarify that the --user flag is only required when running docker as root. It is also likely not required by users using podman as a docker drop-in replacement, since podman always runs in rootless mode.
Diffstat (limited to 'docker')
0 files changed, 0 insertions, 0 deletions