I found that the Tails has been evaluating Docker. However, I'd like to have a Docker image that connects only through Tor. I'm happy with setting my own proxy. Is there a recipe to do this?

What I expect: Run a docker container from an image, and get into a terminal where the VM can only connect to Internet through Tor. I'm happy with a Docker file that can do that.

If my question is still ambiguous, please feel free to ask for more details.


It's possible. Take a look at opnsense or tails. They have ability to transparently route all traffic through tor.


Yes this is possible and I have a WIP code on github that spins up a new dockerized hidden service server. This should point you in the right direction: https://github.com/jamesacampbell/stealth-tor-docker/blob/master/README.md YMMV.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.