Home / Companies / Snyk / Blog / Post Details
Content Deep Dive

Privileged Docker containers—do you really need them?

Blog post from Snyk

Post Details
Company
Date Published
Author
Matt Jarvis
Word Count
1,328
Company Posts That Month
13
Language
English
Hacker News Points
2
Post removed?
No
Summary

Running a container in a rootless configuration with Podman does not necessarily require the `--privileged` flag, as user namespaces allow unprivileged users to create new user namespaces and gain most of the privileges required to spawn a functioning container. However, using the `--privileged` flag can grant all capabilities to the process, breaking the paradigms of least privilege and zero trust. A rootless configuration allows for reduced attack surface for vulnerabilities. To fix issues with containers running in unprivileged mode, it is possible to disable labels entirely or use the `Z` switch to re-label mounts. Running containers with the absolute minimum of capabilities enabled is also a good option. The rule of Least Privilege should always be followed.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Zero Trust 2 42 21 9 -70%
Kubernetes 1 1,029 132 40 -8%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.