Dockerfile - How to pass an answer to a prompt post apt-get install? : <p>In my Dockerfile, I am trying to install jackd2 package:</p>

<pre><code>RUN apt-get install -y jackd2
</code></pre>

<p>It installs properly, but after installation, I can see the following prompt:</p>

<pre><code>If you want to run jackd with realtime priorities, the user starting jackd
needs realtime permissions. Accept this option to create the file
/etc/security/limits.d/audio.conf, granting realtime priority and memlock
privileges to the audio group.

Running jackd with realtime priority minimizes latency, but may lead to
complete system lock-ups by requesting all the available physical system
memory, which is unacceptable in multi-user environments.

Enable realtime process priority? [yes/no]
</code></pre>

<p>```</p>

<p>At this point, I would like to answer with either yes or no, hit enter and move on but I have no idea how to script this inside a dockerfile and my build hangs right there. </p>
