Use this to run a Tor proxy (and/or hidden services) in a Docker container.
875
This repository contains the Dockerfile of Tor for running a TOR client in a docker container.
I based my image on the Debian 8 Jessie image.
Place your hidden service configuration in the same folder as your torrc
Create a new network by doing docker network create --subnet=172.20.0.0/24
From now on, you need to use the --net tor --ip 172.20.0.100 flags when starting the Tor container.
Also, you need to configure all of your hidden services to use the same net by using the --net tor --ip 172.20.0.<somenumber> flags when starting them.
After that, configure your torrc as follows:
HiddenServiceDir /tor/<servicename>
HiddenServivePort <port> 172.20.0.<number>:<port>
HiddenServicePort ........
Content type
Image
Digest
Size
76.4 MB
Last updated
over 10 years ago
docker pull platzhalter/tor