title: Get audio from docker container to host
body: <p>I have a simple node.js app where I start playing a song from URL (using ffplay as a child process).</p>
  <p>Locally everything works fine.</p>
  <p>In Docker when I start playing, everything ok, no errors, but there is no sound on my laptop.</p>
  <p>Is it possible to &quot;expose&quot; audio from docker to the host machine?</p>
  <p>here is my dockerfile</p>
  <pre><code>FROM node:14.15.0-alpine
  RUN apk add --no-cache ffmpeg
  WORKDIR /app
  COPY package*.json ./
  RUN npm ci --production
  COPY src/ src/
  CMD [&quot;npm&quot;, &quot;run&quot;, &quot;start:prod&quot;]
  </code></pre>
  <p>I run this command</p>
  <pre><code>docker build . -t pig &amp;&amp; docker run --rm --device /dev/snd --name pig pig
  </code></pre>