docker run --user 1000:1000 myimage

Category: Docker

docker run --user 1000:1000 myimage

Run container process as UID 1000, GID 1000 (non-root)

Runs the container process as a specific non-root user (UID 1000, GID 1000). Reduces security risk compared to running as root.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.