You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I'm configuring tor-socks-proxy container for 24/7 on home server. So have couple thoughts.
Issue
By your receipt my container started as uid=100. In my case it is systemd-network user. Despite in Dockerfile user is tor. Probably, It is because specific user mapping during build. Although my system tor user have strictly defined UID.
Anyway intersection with system-wide uid=100 (systemd-network) it is bad security practice. I think.
Proposal
I propose change receipts and add some defined but numeric UID. Using numeric uid let us isolate container from other system even host system user is not exists.
For example my receipt for fix it (uid=9155), reduced:
FROM alpine:3.16
...
COPY --chown=9155:9155 torrc /etc/tor/
RUN chown 9155:9155 /var/lib/tor
...
USER 9155
EXPOSE 8853/udp 9150/tcp
CMD ["/usr/bin/tor", "-f", "/etc/tor/torrc"]
Hi, thanks for good project! Just works! 🚀🚀🚀
I have some issue/proposal.
Now I'm configuring
tor-socks-proxy
container for 24/7 on home server. So have couple thoughts.Issue
By your receipt my container started as
uid=100
. In my case it issystemd-network
user. Despite inDockerfile
user istor
. Probably, It is because specific user mapping during build. Although my systemtor
user have strictly defined UID.Anyway intersection with system-wide
uid=100
(systemd-network
) it is bad security practice. I think.Proposal
I propose change receipts and add some defined but numeric UID. Using numeric
uid
let us isolate container from other system even host system user is not exists.For example my receipt for fix it (
uid=9155
), reduced:Compose:
What you think about this?
Env:
Ubuntu 20.04
Docker version 20.10.17
The text was updated successfully, but these errors were encountered: