**Obsoleted in favor of https://community.torproject.org/relay/setup/bridge/docker/ **
This is a tor docker container which follows this tutorial
This project is built on dockerhub. You can pull it by running
docker pull niccokunzmann/tor
If you would like to build the image yourself, you can run
docker build --tag niccokunzmann/tor .
To run the docker container, execute this
docker run --rm -it niccokunzmann/tor
If you like to configure the service, you can do so by setting environment varaibles. See the docker-compose.yml file for the full configuration options. Below, you can find an example for a tor relay.
If you want to run a relay, a docker-compose.yml
can be generated as described
in this post:
version: "2"
services:
tor:
image: niccokunzmann/tor
ports:
- "443:443"
environment:
ORPort: 443
ExitPolicy: "reject *:*"
Nickname: ididntedittheconfig
ContactInfo: "human@..."
If you want to change the Exitpolicy
, you should read about what to let through to reduce legal implications.