boeboe/tor-scratch

By boeboe

Updated over 1 year ago

Scratch container image for Tor

Image
Networking
Security
0

1.0K

boeboe/tor-scratch repository overview

Tor-Scratch Container

Run TOR conveniently from a docker scratch container.

Docker Build Docker Stars Docker Pulls Docker Automated Docker Build Docker Version

Usage

$ docker run --rm --network host boeboe/tor-scratch

Once the docker container has finished starting, you can test it with the following command:

$ curl --socks5 localhost:9050 --socks5-hostname localhost:9050 https://check.torproject.org/api/ip

NOTE: If you use do not use host network, you need to force tor to listen on 0.0.0.0 instead of the default 127.0.0.1

In order to pass a torrc configuration file and modify the exposed proxy port:

$ cat torrc 
Log notice stdout
HTTPTunnelPort 0.0.0.0:9080
SocksPort 0.0.0.0:9050
MaxCircuitDirtiness 30

$ docker run -p 8050:9050 -p 8080:9080 -v "$(pwd)"/torrc:/torrc boeboe/tor-scratch tor -f torrc

$ curl --socks5 localhost:8050 --socks5-hostname localhost:8050 https://check.torproject.org/api/ip
$ curl --proxy localhost:8080 https://check.torproject.org/api/ip

Manual page

Man page of version 0.4.8.13 can be found here.

Request configuration change

Please use this link (GitHub account required) to suggest a change in this image configuration.

Tag summary

Content type

Image

Digest

sha256:4da09eb0f

Size

2.8 MB

Last updated

over 1 year ago

docker pull boeboe/tor-scratch