Public | Automated Build

Last pushed: 6 days ago
Short Description
Tor hidden service "proxy" for Docker containers using docker-gen
Full Description

torify

Tor hidden service "proxy" for Docker containers using docker-gen.

docker run -d \
    -v /var/run/docker.sock:/tmp/docker.sock:ro \
    -v ./torify:/var/lib/tor \
    infiniteproject/torify

Run container you want to create a hidden service for with -e TORIFY env variable:

docker run -d --name web -e TORIFY nginx

Get hostname:

cat ./torify/web/hostname

This is very basic and untested, feedback appreciated. Tor connects to target container's first exposed port, otherwise to port 80 unless specified with VIRTUAL_PORT env variable. Data is stored in /var/lib/tor/<container-name> so you can persist it with -v.

Docker Pull Command
Owner
infiniteproject
Source Repository

Comments (0)