Dockerized Tor Browsing without Logs

Tor Project is the most popular browser to access internet in complete anonymity. There is a VPN alternative for the tor, However, I am concerned with finishing off as soon as I am done with the browsing.

I have written a one-liner which has no logging and it removes itself

sudo docker run -it  --log-driver none  --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --entrypoint="/usr/local/bin/Browser/start-tor-browser" jess/tor-browser

–rm tells the docker to clean up the container once it is exit.

–log-driver none gives no logging while it is running.

–entrypoint disables the stdout

You can add an alias in your bashrc or zshrc file as following and access it with tor

alias tor='sudo docker run -it  --log-driver none  --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --entrypoint="/usr/local/bin/Browser/start-tor-browser" jess/tor-browser'

Worth Sharing?

9 Comments

  1. I just checked and I am glad that it removes everything. Tor itself isn’t leaving anything which is great. Although it needs an update when it runs.

    1. Last image built was 12 days ago so I think we will just have to make sure it pulls the latest image each time. I am sure it is being mned.aintai

  2. Never thought of it now everything is coming in my mind – why tor is installed, why I have been browsing. I think you can make it more secure by deleting the entire image as well 😛

    1. alias tor=’sudo docker run -it –log-driver none –rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro –entrypoint=”/usr/local/bin/Browser/start-tor-browser” jess/tor-browser && docker image rm jess/tor-browser’ Done!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>