update README

This commit is contained in:
Andy 2016-05-20 11:22:39 +02:00
parent 432e8ad7aa
commit 18f2b51f77
Signed by: arno
GPG Key ID: 368DDA2E9A471EAC

View File

@ -11,8 +11,11 @@ docker-compose run --rm tor
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 $@) }
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