You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
728 B

8 years ago
# Tor Bundle in Docker
## Launching Tor
### with Docker Compose
```
docker-compose run --rm tor
```
8 years ago
You can use the following shortcut function and place it to your `~/.bash_aliases` file
```
function docker_helper() { (cd ~/docker/$1; docker-compose run --rm "$@" & disown) }
function tor() { (docker_helper $FUNCNAME $@) }
```
8 years ago
### 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
```