Skip to content

Instantly share code, notes, and snippets.

@agakshat
Created June 22, 2016 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agakshat/30104bcc3448350ba3a38d677699890e to your computer and use it in GitHub Desktop.
Save agakshat/30104bcc3448350ba3a38d677699890e to your computer and use it in GitHub Desktop.
Running audio from inside Docker container
pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.!default {
type hw
card 1
}
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y alsa
#temp.wav is a sample file to run
ADD temp.wav /
#substitute /root/ with your container's $HOME
ADD .asoundrc /root/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment