Docker Security
Docker no-new-privileges
Restrict gaining new privileges via program execution. Does not remove existing privileges. Verify on supported Linux runtimes. Check effective state; do not infer removal of existing privileges.
Formal Syntax & Structure
docker syntaxdocker
--security-opt no-new-privileges=trueWorking Example
Example Snippetdocker
--security-opt no-new-privileges=true