Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sound support #3

Open
nidup opened this issue Jun 25, 2017 · 3 comments
Open

Add sound support #3

nidup opened this issue Jun 25, 2017 · 3 comments

Comments

@nidup
Copy link
Owner

nidup commented Jun 25, 2017

No description provided.

@fzuviria
Copy link

fzuviria commented Nov 4, 2018

I managed to make sound WORK the following way:
Dockerfile

user group audio

RUN usermod -a -G audio developer

fancy alias

RUN echo 'alias starcraft="wine '"'"'~/.wine/drive_c/Program Files (x86)/StarCraft1161/StarCraft.exe'"'" >> /home/developer/.bashrc

Launching it:
docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/snd:/dev/snd -v /etc/machine-id:/etc/machine-id -v /run/user/$uid/pulse:/run/user/$uid/pulse -v /run/dbus/:/run/dbus/ -v /dev/shm:/dev/shm -v /var/lib/dbus:/var/lib/dbus -v ~/.pulse:/home/$dockerUsername/.pulse --privileged --security-opt seccomp=unconfined broodwar wine /home/developer/.wine/drive_c/Program\ Files\ (x86)/StarCraft/StarCraft.exe

@nidup
Copy link
Owner Author

nidup commented Nov 5, 2018

Thank you @fzuviria !

@tarik817
Copy link

@nidup Hi!
will you update the image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants