mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-04-27 16:45:49 +03:00
[GH-ISSUE #209] Running docker-osx with unprivileged container user #147
Labels
No labels
bug
documentation
enhancement
following upstream developments
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Docker-OSX#147
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mviereck on GitHub (Mar 18, 2021).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/209
Coming from https://github.com/mviereck/x11docker/issues/331, we might continue the discussion here on how docker-osx could be improved to integrate better with x11docker.
I am citing myself:
@sickcodes
Some improvements could be done within docker-osx:
Especially of interest is to allow an entirely unprivileged container user. Can be tested with
docker run --cap-drop=all --security-opt=no-new-privileges [...]. Steps needed:sudo--group-add kvm --group-add audioinstead ofchown [...] /dev/kvm /dev/snd.Working x11docker commands so far:
--cap-drop=ALL --security-opt=no-new-privileges):--cap-default) and running with container userarch. Otherwise failing with sshd errors:You can see the generated docker command if running x11docker with option
--debug.@sickcodes commented on GitHub (Mar 18, 2021):
Thanks @mviereck I'll pump this out in the weekend. I've wanted to increase container security for some time now.
@sickcodes commented on GitHub (Mar 21, 2022):
Implementing these today, thanks legend
@mviereck commented on GitHub (Mar 22, 2022):
I don't see new commits in your repo yet. If there are questions on this, just ask.