fixed a typo in README
This commit is contained in:
parent
e93152925a
commit
a79f8488dc
@ -59,15 +59,16 @@ xhost +SI:localuser:$(id -un)
|
|||||||
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:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
function docker_helper() {{
|
function docker_helper() {
|
||||||
pushd ~/docker/$1
|
pushd ~/docker/$1
|
||||||
docker-compose rm -fa "$1"
|
docker-compose rm -fa "$1"
|
||||||
docker-compose run -d --name "$1" "$@"
|
docker-compose run -d --name "$1" "$@"
|
||||||
popd
|
popd
|
||||||
}}
|
}
|
||||||
|
|
||||||
function steam() {
|
function steam() {
|
||||||
docker_helper $FUNCNAME $@
|
docker_helper $FUNCNAME $@
|
||||||
}}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Then just use `steam` command to run Steam in docker.
|
Then just use `steam` command to run Steam in docker.
|
||||||
|
Loading…
Reference in New Issue
Block a user