Dockerfile – How to pass an answer to a prompt post apt-get install?
This answer has an explanation for the difference between “assume yes” and a non-interactive mode. I also found an example of a Dockerfile that installs jackd2 here, and it’s setting DEBIAN_FRONTEND to ‘noninteractive’ before installing jackd2.