Hi, I have a tor relay thats been running for years.
Today did a pull and it stops working claiming:
relay_1 | Feb 17 15:56:43.072 [warn] Directory /var/lib/tor cannot be read: Permission denied
Noting has changed on my server, but the image
root@tor [ ~/containers/tor ]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
thetorproject/obfs4-bridge latest 062bae9696c6 3 weeks ago 143MB
thetorproject/obfs4-bridge d0a5213e109d 16 months ago 136MB
FROM thetorproject/obfs4-bridge:0.15
USER root
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
entrypoint.sh:
#!/bin/bash
chown -R debian-tor:debian-tor /var/lib/tor || exit 1
# Then switch to debian-tor and run the main command
su debian-tor -s /bin/bash -c "/usr/local/bin/start-tor.sh"
and then use that image in the docker compose file