A Docker Image for a Tor relay node, image is hosted on Docker Hub: https://hub.docker.com/r/wlkx/docker-tor-relay/
- Clone the repository:
git clone firstname.lastname@example.org:wlk/docker-tor-relay.git
- change directory
tor_data(owned as root)
sudo mkdir tor_data
- Create separate network for Tor node
- Run the script:
The script will pull the image from the Docker Hub and run it. Container is configured to auto restart with the system.
Alternatively you can edit the
tor_config_relay.conf file and build the image yourself:
docker build -t MY_IMAGE .
Then you need to edit last line in
run.sh and change