update README

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

View File

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