Skip to content

Instantly share code, notes, and snippets.

@guiambros
Created December 17, 2017 03:17
Show Gist options
  • Save guiambros/8847ae6d23299a395c3d8a566996a16f to your computer and use it in GitHub Desktop.
Save guiambros/8847ae6d23299a395c3d8a566996a16f to your computer and use it in GitHub Desktop.
#!/bin/bash
docker run \
--rm \
--hostname container \
-it \
--net host \
--cpuset-cpus 0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=$DISPLAY \
--device /dev/snd \
-v /dev/shm:/dev/shm \
-e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
-v ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native \
--group-add $(getent group audio | cut -d: -f3) \
vizdoom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment