update README
This commit is contained in:
parent
432e8ad7aa
commit
18f2b51f77
@ -11,8 +11,11 @@ docker-compose run --rm tor
|
|||||||
You can use the following shortcut function and place it to your `~/.bash_aliases` file
|
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) }
|
alias docker="sudo -E docker"
|
||||||
function tor() { (docker_helper $FUNCNAME $@) }
|
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
|
### with Docker
|
||||||
|
Loading…
Reference in New Issue
Block a user