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.

33 lines
849 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
```
8 years ago
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 $@; } }
8 years ago
```
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
```