skip to Main Content

nobody & nonroot user in distroless images – Docker

Distroless images comes with 3 users : > docker run --rm --entrypoint cat gcr.io/distroless/nodejs:debug /etc/passwd root:x:0:0:root:/root:/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/sbin/nologin nonroot:x:65532:65532:nonroot:/home/nonroot:/sbin/nologin If you run the image without a USER instruction in your Dockerfile the image runs as uid=0(root) gid=0(root). I would like to…

VIEW QUESTION
Back To Top
Search