How To Run A Tor Exit Node With Docker

Sun, 18 Feb 2018 19:44:19 +0800         Sentoz Lin

(Image source:

"Tor", is a project which protect privacy & security (Basic Human Rights) on the Internet from thirty-party surveillance, running by volunteers who are generous to share their computer power around the globe.

Here I am going to show you how to run a "Tor exit-relay" with docker in just one command.


Here are the steps:

  1. Start the Tor service with docker from jess/tor-relay image.

    >> docker run -d --restart always \ -v /etc/localtime:/etc/localtime:ro \ -p 9001:9001 \ -name tor-relay jess/tor-relay \ -f /etc/tor/torrc.exit

    options explained:

    • -d: run the service in the background
    • --restart always: automatically run at system boot or when container crash
    • -v /etc/localtime:/etc/localtime:ro: sync the time in container from host
    • -p 9001:9001: map host:container port
    • -f /etc/tor/torrc.exit: run Tor service as exit-relay

Here we done! With Docker, we can easily set up a basic tor relay service without any configuration and make a more free world📣.