docker run --security-opt no-new-privileges myimage

Category: Docker

docker run --security-opt no-new-privileges myimage

Prevent the container process from gaining additional privileges

Prevents the container process from escalating its own privileges (e.g. via setuid binaries).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.