Re:Rebuilding My Personal Infrastructure With Alpine Linux a...
by barrystaes on Wednesday March 13, 2019 @04:52AM
(#19376886)
I wondered if this is what Unraid already does: yes its mentioned at https://wiki.unraid.net/UnRAID_6/Overview#Containers
> The cornerstone of Docker is in its ability to use Linux control groups, namespace isolation, and images to create isolated execution environments in the form of Docker containers.
If you want to run dockers at home, i suggest you give it a try. All you need is an old computer and a USB (it runs in RAM). Unraid basically is Linux with a (happy little) webinterface for NAS shares + apps.
Re:Rebuilding My Personal Infrastructure With Alpine Linux a...
by fulafel on Wednesday March 13, 2019 @07:49AM
(#19377738)
The web page doesn't read like it's enabling userns-remap, to me.
Re:Rebuilding My Personal Infrastructure With Alpine Linux a...
by jxub on Wednesday March 13, 2019 @04:48AM
(#19376868)
Just create a user in the Dockerfile, change to him and chroot the container application directory to the created user
Re:Rebuilding My Personal Infrastructure With Alpine Linux a...
by fulafel on Wednesday March 13, 2019 @06:28AM
(#19377371)
This only works if you trust all your docker images and audit them for root processes. Even then you still have setuid binaries and other privilege escalation risks, if you inherit from dockerhub images etc.
PSA: everyone should turn on the userns option in docker daemon settings. It messes with volume mounts but you can turn it off on a per container basis (userns=host) or arrange a manual uid mapping for the mounts.
https://docs.docker.com/v17.12/engine/security/userns-remap/