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
I got the following error:
/etc/tor/tor-wrapper.sh: line 44: /etc/tor/torrc: Permission denied
How can I mount the torrc file to a volume which is editable on the host?
This means, run the default container and map the default torrc file to a host volume, edit the torrc file on the host, and reload the container with the new configs.
I think that I didn't fully take into account the case where someone wants to provide their own torrc file instead of using the templating mechanism run by the wrapper script. So what I did is that I created at new environment variable SKIP_TEMPLATE. If set to any value, the tor-wrapper.sh will skip the templating phase that was generating the torrc file (hence the need for write permission) and instead it will use any existing torrc file verbatim (so only read permission is needed).
You can test this change using the leplusorg/tor:main image (built from the tip of the main branch) and add something like SKIP_TEMPLATE: 1 to your compose file. Let me know if that works for you without the workaround that you found.
Dear Thomas,
thank you for providing an uptodate TOR docker image [1].
However, when I composed the container with:
I got the following error:
/etc/tor/tor-wrapper.sh: line 44: /etc/tor/torrc: Permission denied
How can I mount the torrc file to a volume which is editable on the host?
This means, run the default container and map the default torrc file to a host volume, edit the torrc file on the host, and reload the container with the new configs.
Your advice will be greatly appreciated.
Kr, Wilmar
Refs:
[1] https://hub.docker.com/r/leplusorg/tor
The text was updated successfully, but these errors were encountered: