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.

21 lines
498 B

8 years ago
# Tor Bundle in Docker
## Launching Tor
```
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"
7 years ago
function docker_helper() { { pushd ~/git/$1; docker-compose rm -fa "$1"; docker-compose run -d --name "$1" "$@"; popd; } }
8 years ago
function tor() { { docker_helper $FUNCNAME $@; } }
8 years ago
7 years ago
# OR
alias tor='docker-compose -f ~/git/tor/docker-compose.yml up -d'
8 years ago
```