# One Command Gives Any User Root on Linux with Docker

Original title: Be Using Rootless Containers

> Hacker News story 49611889 · language: en · submitted 2026-09-08
> Web version: https://zeli.app/story/49611889
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 39 · by [ibobev](<https://news.ycombinator.com/user?id=ibobev>) · 💬 23
[original](<https://blog.miguelgrinberg.com/post/you-should-be-using-rootless-containers>) · [HN discussion](<https://news.ycombinator.com/item?id=49611889>)

## Summary

Docker's root-owned daemon means that adding your user to the docker group for convenience opens a trivial root escalation path. A single docker run can mount the host filesystem and read protected files without a password. Rootless alternatives like Podman run containers under your own user, closing the hole, though they come with trade-offs around image naming, daemonless restarts, and API access.

## Key quote

> Because the container is running under the root account through the Docker daemon, it has access to all files and thus can bypass any restrictions of the user that issued the docker run command.

## HN discussion (23 comments)

### [ma2kx](<https://news.ycombinator.com/item?id=49612550>)

> In my opinion the biggest advantage of podman is that it uses pods with basically the same config and behavior as kubernetes does. As long as you just use podman pods instead (or possibly via) compose files you likely just notice that only the pod has one (and not any more) veth interface, that you reach other containers inside a pod via localhost:$port (instead of $service-name:$port) but when you switch later on to kubernetes you are already familiar with some basics.

### [orangea](<https://news.ycombinator.com/item?id=49638095>)

> Why would an adversary being able to execute code as root on a personal computer be a bigger threat than their being able to execute code as non-root? Surely just about any of the stuff that a malicious hacker might want to do to someone's personal computer can be done without root... right?

### [venussnatch](<https://news.ycombinator.com/item?id=49638108>)

> \>the one led by the racist, so it isn't getting a mention here
>
> Are people really terminally online enough to understand this?

---

## Cite

- Page: https://zeli.app/story/49611889
- Date: 2026-09-08
- Source: blog.miguelgrinberg.com (https://blog.miguelgrinberg.com/post/you-should-be-using-rootless-containers)
- Hacker News: https://news.ycombinator.com/item?id=49611889

## Other languages

- zh: https://zeli.app/zh/story/49611889 · markdown: https://zeli.app/zh/story/49611889.md
- ja: https://zeli.app/ja/story/49611889 · markdown: https://zeli.app/ja/story/49611889.md
- ko: https://zeli.app/ko/story/49611889 · markdown: https://zeli.app/ko/story/49611889.md
- de: https://zeli.app/de/story/49611889 · markdown: https://zeli.app/de/story/49611889.md
- es: https://zeli.app/es/story/49611889 · markdown: https://zeli.app/es/story/49611889.md
- ru: https://zeli.app/ru/story/49611889 · markdown: https://zeli.app/ru/story/49611889.md
