update README
This commit is contained in:
parent
b2f2d3a429
commit
caf41961dd
@ -9,6 +9,9 @@ Running keepass2 in Docker
|
|||||||
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 keepass2() { (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 keepass2() { { docker_helper $FUNCNAME $@; } }
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user