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
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.
GitHub (Also contains other tools to bypass the GFW)