You may want to re-run this command later on in order to keep the image updated.
```
docker build -t andrey01/steam .
```
## Launch the Steam in Docker
You can drop the following aliases to your ~/.bash_aliases
```
alias docker="sudo docker"
alias docker-compose="sudo docker-compose"
alias steam="docker-compose -f $HOME/docker/steam/docker-compose.yml run --rm steam"
```
Then just issue "steam" command to run Steam in docker.
## Troubleshooting
You might want to modify the `docker-compose.yml` in case of problems, the file should be pretty self explanatory, although you may refer to the official [Docker Compose file reference](https://docs.docker.com/compose/compose-file/)
Also keep in mind to uncomment or/and add your devices to the `devices:` section there.
The best result is when you have a similar to the following output, using the `glxgears` (part of `mesa-utils` package):
```
$ docker-compose -f $HOME/docker/steam/docker-compose.yml run --rm --entrypoint glxgears steam
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
305 frames in 5.0 seconds = 60.878 FPS
301 frames in 5.0 seconds = 60.011 FPS
301 frames in 5.0 seconds = 60.009 FPS
305 frames in 5.0 seconds = 60.807 FPS
```
If you are getting `segmentation fault` error or Steam does not start, then you could try resetting its config:
```
$ docker-compose -f $HOME/docker/steam/docker-compose.yml run --rm steam --reset
```
# Links
Below is just bunch of links, someone might find them useful