Skip to content

feat(docker-in-docker)!: run the daemon rootless without privileged - #42

Open
Hansehart wants to merge 1 commit into
mainfrom
feat/rootless-dind
Open

feat(docker-in-docker)!: run the daemon rootless without privileged#42
Hansehart wants to merge 1 commit into
mainfrom
feat/rootless-dind

Conversation

@Hansehart

Copy link
Copy Markdown
Owner

The feature declared privileged, which the CLI applies to the whole dev container, so anyone in the docker group could start a privileged nested container and mount the host disk. Run dockerd rootless instead and drop privileged.

This needs file-capability newuidmap instead of setuid, /dev/net/tun created at start, and --pidns so RootlessKit mounts a writable procfs. daemonJson now also lands in the remote user's config directory, which is where the rootless daemon reads it.

BREAKING CHANGE: DOCKER_HOST moves to the remote user's socket and a non-root remoteUser is now required, so this ships as 2.0.0. Consumers pinned to :1 keep the rootful feature and must opt in via :2.

The feature declared privileged, which the CLI applies to the whole dev
container, so anyone in the docker group could start a privileged
nested container and mount the host disk. Run dockerd rootless instead
and drop privileged.

This needs file-capability newuidmap instead of setuid, /dev/net/tun
created at start, and --pidns so RootlessKit mounts a writable procfs.
daemonJson now also lands in the remote user's config directory, which
is where the rootless daemon reads it.

BREAKING CHANGE: DOCKER_HOST moves to the remote user's socket and a
non-root remoteUser is now required, so this ships as 2.0.0. Consumers
pinned to :1 keep the rootful feature and must opt in via :2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant