update README
This commit is contained in:
parent
fa14de13d2
commit
bc271e4cf0
@ -5,8 +5,11 @@
|
|||||||
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 firefox() { (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 firefox() { { docker_helper $FUNCNAME $@; } }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user