PVE 直接安装docker 修改音频id
时间:2021-12-26 13:05 热度:1280° 评论:0 条

安装docker
ps:直接安装docker本身不会对系统造成任何稳定性影响,但是需要注意macvlan等容器和宿主ip冲突问题。
apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - apt-key fingerprint 0EBFCD88 add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" apt-get update && apt-get install docker-ce -y
或者 直接运行docker官网的脚本,一个效果
curl -fsSL https://get.docker.com | bash
修改音频硬件id
因为P V E会默认使用板载声卡,并且占用板载声卡id位置,导致usb等声卡id并不是默认声卡。
这里就会出现一个严重问题,就是各种alsa库由于改不了默认声卡id(特别是docker容器内),所以需要修改。
vim /etc/modprobe.d/alsa-base.conf options snd_usb_audio index=0 options snd_hda_intel index=-2
然后
reboot


捐赠支持:如果觉得这篇文章对您有帮助,请“扫一扫”鼓励作者!
相关文章 本文无需标签!
本文作者:沁雨寒 文章标题: PVE 直接安装docker 修改音频id
本文地址:https://blog.sxx1314.com/linux/585.html
版权声明:若无注明,本文皆为“unix 软硬件 技术宅 ”原创,转载请保留文章出处。百度已收录
本文地址:https://blog.sxx1314.com/linux/585.html
版权声明:若无注明,本文皆为“unix 软硬件 技术宅 ”原创,转载请保留文章出处。百度已收录















