Public | Automated Build

Last pushed: a year ago
Short Description
Tor Relay on Alpine Linux Edge
Full Description

NOTE: This image uses the edge branch of Alpine Linux, because tor is not available in 3.4 repos.

If you intend to import keys from another relay you might want to create a
volume:

docker volume create --name="tor"

Run the container attaching this volume (add -v tor:/var/lib/tor/ if you need
volume for tor's data):

docker run -d --restart always \
    -v /etc/localtime:/etc/localtime:ro \
    -p 9001:9001 -p 9030:9030 -p 9051:9051 \
    --name tor-relay vladimiroff/tor-relay

systemd

If you want to manage this container with systemd, here's an example for a
service file (/etc/systemd/system/tor.service):

[Unit]
Description=Tor Relay
Requires=docker.service
After=docker.service

[Service]
Restart=always
ExecStart=/usr/bin/docker start -a tor
ExecStop=/usr/bin/docker stop -t 10 tor

[Install]
WantedBy=multi-user.target
Docker Pull Command
Owner
vladimiroff
Source Repository

Comments (0)