sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
36.1k stars 1.78k forks source link

Running docker-osx with unprivileged container user #209

Open mviereck opened 3 years ago

mviereck commented 3 years ago

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:


Working x11docker commands so far:

You can see the generated docker command if running x11docker with option --debug.

sickcodes commented 3 years ago

Thanks @mviereck I'll pump this out in the weekend. I've wanted to increase container security for some time now.

sickcodes commented 2 years ago

Implementing these today, thanks legend

mviereck commented 2 years ago

I don't see new commits in your repo yet. If there are questions on this, just ask.