在我的 Dockerfile 中,我正在尝试安装 jackd2 包:
RUN apt-get install -y jackd2
安装过程顺利进行,但是安装后我看到了以下提示:
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]
此时,我想回答是或否,然后按回车键继续,但我不知道如何在dockerfile中编写脚本,我的构建在那里挂起。
yes | apt-get install -y jackd2
命令吗? - kichikyes yes | apt-get ...
- Andreas Louvdocker commit
将容器转换为新镜像,并将该新镜像用作Dockerfile的基础。 - meatspace