Skip to content

Latest commit

 

History

History

tor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Dockerized tor client based on alpine

Container Registry

Docker CLI

docker run -d -restart=always \
    --name tor \
    -p 12345:9050 \
    # -v $(pwd)/torrc:/etc/tor/torrc:ro \  # Optional, mount your own torrc configuration
    zydou/tor:latest

Docker Compose

version: "3.9"
services:
  service.tor:
    image: zydou/tor:latest
    container_name: tor
    ports:
      - 12345:9050
    # volumes:
    #   - ./torrc:/etc/tor/torrc:ro  # Optional, mount your own torrc configuration
    restart: always

This will pull the zydou/tor image tagged with latest from Docker Hub if it is not already present on the local host. It then starts a container running a tor service and exposes the container's internal port 1080 to port 12345 of the host machine.

Check out all tags if you need another version.

Source code

GitHub (Also contains other tools to bypass the GFW)

LICENSE

MIT