update README

This commit is contained in:
Andy 2016-04-30 21:10:08 +02:00
parent dcbcadc222
commit c3cbeaa0a6
Signed by: arno
GPG Key ID: 368DDA2E9A471EAC

View File

@ -46,12 +46,11 @@ docker build -t andrey01/steam .
## Launch the Steam in Docker
You can drop the following aliases to your ~/.bash_aliases
You can use the following shortcut function and place it to your `~/.bash_aliases` file
```
alias docker="sudo docker"
alias docker-compose="sudo docker-compose"
alias steam="docker-compose -f $HOME/docker/steam/docker-compose.yml run --rm steam"
function docker_helper() { (cd ~/docker/$1; docker-compose run --rm "$@" & disown) }
function steam() { (docker_helper $FUNCNAME $@) }
```
Then just issue "steam" command to run Steam in docker.