oposs / tl-docker

ThinLinc Server in a Docker
35 stars 23 forks source link

Why do you need to run the docker image with "--privileged" #2

Closed EricAtORS closed 3 years ago

EricAtORS commented 3 years ago

Hi,

Why do you need to run the docker container with --privileged? Can the reason be in the readme.md?

Thanks for this. It's going to be really helpful.

EricAtORS commented 3 years ago

Running as privileged is not needed. It is only needed to start and manage systemd.

oetiker commented 3 years ago

Hi Eric

Actually the thinlinc daemons also need some privileged access, but as shown in the README you can give those capabilities exp-licitly if you want. One might also think about 'fixing' thinlinc to not require these privileges. I have not investigated this option more closely.

EricAtORS commented 3 years ago

Thanks for the reply @oetiker

I needed to investigate it closer because I was trying to use it with a different base image for which systemd was not running.

mkdir /run/sshd -p
/usr/sbin/sshd
/bin/bash --login -c /opt/thinlinc/sbin/tlwebadm

Running those commands was sufficient to bring up ThinLinc and the ssh server.