top-bettercode / docker-qq

提供一种在linux下运行QQ的方式
https://hub.docker.com/r/bestwu/qq/
Apache License 2.0
404 stars 52 forks source link

"/dev/snd": no such file or directory #53

Closed Mino9526 closed 1 year ago

Mino9526 commented 2 years ago

xxx@xxx:~/Applications/QQ$ docker-compose up -d Starting qq ... error

ERROR: for qq Cannot start service qq: error gathering device information while adding custom device "/dev/snd": no such file or directory

ERROR: for qq Cannot start service qq: error gathering device information while adding custom device "/dev/snd": no such file or directory ERROR: Encountered errors while bringing up the project.

Mino9526 commented 2 years ago
version: '2'
services:
  qq:
    image: bestwu/qq:office
    container_name: qq
    ipc: host
    devices:
      - /dev/snd
    volumes:
      - /tmp/.X11-unix:/tmp/.X11-unix
      - /home/asroe/Applications/QQ/TencentFiles:/TencentFiles
    environment:
      - DISPLAY=unix$DISPLAY
      - XMODIFIERS=@im=fcitx
      - QT_IM_MODULE=fcitx
      - GTK_IM_MODULE=fcitx
      - AUDIO_GID=29
      - GID=1000
      - UID=1000
Mino9526 commented 2 years ago
                          ./+o+-       xxxxx
                  yyyyy- -yyyyyy+      OS: Ubuntu 22.04 jammy
               ://+//////-yyyyyyo      Kernel: x86_64 Linux 5.15.0-48-generic
           .++ .:/++++++/-.+sss/`      Uptime: 3h 55m
         .:++o:  /++++++++/:--:/-      Packages: 2227
        o:+o+:++.`..```.-/oo+++++/     Shell: bash
       .:+o:+o/.          `+sssoo+/    Resolution: 2560x1600
  .++/+:+oo+o:`             /sssooo.   DE: GNOME 41.7
 /+++//+:`oo+o               /::--:.   WM: Mutter
 \+/+o+++`o++o               ++////.   WM Theme: Adwaita
  .++.o+++oo+:`             /dddhhh.   GTK Theme: Yaru-olive [GTK2/3]
       .+.o+oo:.          `oddhhhh+    Icon Theme: Yaru-olive
        \+.++o+o``-````.:ohdhhhhh+     Font: Ubuntu 11
         `:o+++ `ohhhhhhhhyo++os:      Disk: 124G / 368G (35%)
           .o:`.syhhhhhhh/.oo++o`      CPU: AMD Ryzen 7 6800H with Radeon Graphics @ 16x 4.785GHz
               /osyyyyyyo++ooo+++/     GPU: AMD YELLOW_CARP (LLVM 13.0.1, DRM 3.42, 5.15.0-48-generic)
                   ````` +oo+++o\:     RAM: -
solomanhl commented 1 year ago

遇到同样的问题,要加sudo,但是问题是sudo的容器在docker-desktop显示不出来,并且qq这个起不来,微信的可以