Tor relay container for the RaspberryPi (arm32v6 aka RPi A/B/B+ and later)

start with:
docker run-d --restart=unless-stopped --name rpi-tor-relay \
-v {local path}/torrc:/etc/tor/torrc:ro \
-v {local path}/fingerprint:/var/lib/tor/fingerprint:ro \
-v {local path}/keys:/var/lib/tor/keys:rw \
-p 9030:9030 -p 9001:9001 \
intrepidde/rpi-tor-relay:latest

 

BREAKING CHANGE: 13.7.2020

With new version 0.4.3.5 (not marked as latest currently) the runser is not root anymore (for security reasons of course).
New runuser is "tor" uid 9001 (a user with uid 1000 was created before, but not used).
If you want to use old root with new images add "--user root" to docker parameters, but it's better to change fingerprint directory to rw for new user ("chmod 9001 {local path}/fingerprint"), or use image taged with "0.4.3.5-root" (this image will receive NO updates!).

 

If you have a running instance copy your "torrc" and "fingerprint".
If you don't have a fingerprint, set path to "rw" instead of "ro", once genereated you can set back to ro.
The directory "keys" must be "rw" all the time (even if empty).

When not mounting/mapping external fs into the container, all keys and fingerprints will be lost, when updating the container.

 

was based on balenalib/rpi-debian:stretch using tor
updated to arm32v6/alpine:latest

(arm32v6 containers are running on old RPi A/B/B+/Zero, arm32v7 don't)