update README

This commit is contained in:
Andy 2016-05-20 11:23:12 +02:00
parent b2f2d3a429
commit caf41961dd
Signed by: arno
GPG Key ID: 368DDA2E9A471EAC

View File

@ -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 $@; } }
``` ```