Tor Browser Bundle
docker-compose.yml | ||
Dockerfile | ||
launch | ||
LICENSE | ||
README.md |
Tor Bundle in Docker
Launching Tor
with Docker Compose
docker-compose run --rm tor
You can use the following shortcut function and place it to your ~/.bash_aliases
file
alias docker="sudo -E docker"
alias docker-compose="sudo -E docker-compose"
function docker_helper() { { pushd ~/docker/$1; docker-compose rm -fa "$1"; docker-compose run -d --name "$1" "$@"; popd; } }
function tor() { { docker_helper $FUNCNAME $@; } }
with Docker
docker run --rm -ti \
--read-only=true \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse:ro \
-v $HOME/Downloads:/home/user/tor-browser_en-US/Browser/Downloads \
-e DISPLAY=unix$DISPLAY \
-e PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native \
andrey01/tor