From 5307b6e2230095d9c0951d29e04b4eb6e1f7e879 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Sat, 29 Dec 2018 13:07:39 +0100 Subject: [PATCH] update readme --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index f990ec4..92c0514 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,23 @@ your X server: xhost +SI:localuser:$(id -un) ``` +You can use the following alias: + +> add this to your ``~/.bash_alias`` file + +```sh +function docker_helper_run() { + command cd ~/git/$1 + docker-compose rm -f "$1" + docker-compose run -d --name "$1" "$@" + command cd ~- +} + +function steam() { + docker_helper_run "$FUNCNAME" "$@" +} +``` + ## Troubleshooting You might want to modify the `docker-compose.yml` in case of problems,