Skip to content

Instantly share code, notes, and snippets.

@gbraad
Last active August 30, 2017 08:19
Show Gist options
  • Select an option

  • Save gbraad/e18f9da84399a8028f66176f53ff7bb6 to your computer and use it in GitHub Desktop.

Select an option

Save gbraad/e18f9da84399a8028f66176f53ff7bb6 to your computer and use it in GitHub Desktop.
Steam and Docker

Steam and Docker

#!/bin/sh

DOCKER_ARGS=" \
  --rm \
  --name steam \
  --privileged \
  -i \
  -e DISPLAY=:0.0 \
  -v /dev/shm:/dev/shm \
  -v /var/media:/media \
  -v /storage/.config/asound.conf:/etc/asound.conf \
  -v config:/root/.config \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v /var/run/dbus:/run/dbus"

STEAM_ARGS=" \
  -full \
  -tenfoo \"
 
docker run $DOCKER_ARGS \
       registry.gitlab.com/gbraad/steam:client-latest \  #tianon/steam \
       steam $STEAM_ARGS "$@" > /tmp/steam.log 2>&1

Also look at Steam in Docker

DOCKER_ARGS=" \
  --rm \
  --name=steam \
  -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/shm:/dev/shm \
  -v /run/user/${UID}/pulse:/run/user/${UID}/pulse \
  -v /etc/machine-id:/etc/machine-id \
  -v ${HOME}/Downloads:/tmp/Downloads \
  -e DISPLAY=${DISPLAY}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment