Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker 启动失败 #199

Open
jzyismylover opened this issue Jun 7, 2023 · 3 comments
Open

docker 启动失败 #199

jzyismylover opened this issue Jun 7, 2023 · 3 comments

Comments

@jzyismylover
Copy link

jzyismylover commented Jun 7, 2023

  1. 系统版本
$ cat /proc/version               
Linux version 5.19.0-43-generic (buildd@lcy02-amd64-028) (x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 
  1. 失败详情
    $ docker logs dochat
[DoChat] 盒装微信 v0.14.4
Disabling patch for /home/user/.wine/drive_c/users/user/AppData/Roaming/Tencent/WeChat ...
Disabling patch for /home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat ...
[DoChat] WeChat 3.3.0.115
[DoChat] Starting...
[DoChat] WeChat.exe exit with code 0
[DoChat] Found new version?
[DoChat] WeChat.exe exited
  1. 启动文件
version: '3'

services:
  dochat:
    networks:
      - dochat
    volumes:
      - $HOME/DoChat/WeChat Files:/home/user/WeChat Files
      - $HOME/DoChat/Applcation Data:/home/user/.wine/drive_c/users/user/Application Data
      - /tmp/.X11-unix:/tmp/.X11-unix
    environment:
      - DISPLAY=unix$DISPLAY
      - QT_IM_MODULE=ibus
      - XMODIFIERS=@im=ibus
      - GTK_IM_MODULE=ibus
      - GID=1000
      - UID=1000
    user: root
    privileged: true
    ipc: host
    image: zixia/wechat
    container_name: dochat

networks:
  dochat:
    driver: bridge
    name: dochat

volumes:
  dochat:
@kdurant
Copy link

kdurant commented Oct 7, 2023

和你一样的问题

@alex-oos
Copy link

文件映射修改一下,修改为
docker run
--name wechat
--rm
-i

-v "$HOME/wechat/WeChatFiles/":'/home/user/WeChatFiles/'
-v "$HOME/wechat/ApplcationData":'/home/user/.wine/drive_c/users/user/ApplicationData/'
-v /tmp/.X11-unix:/tmp/.X11-unix

-e DISPLAY

-e XMODIFIERS=@im=fcitx
-e GTK_IM_MODULE=fcitx
-e QT_IM_MODULE=fcitx
-e GID="$(id -g)"
-e UID="$(id -u)"

--ipc=host
--privileged

zixia/wechat

作者: 快乐小王子🥝
链接: https://alex-oos.github.io/posts/6da36a09/#%E4%B8%80%E3%80%81docker-wechat-%EF%BC%88%E7%9B%AE%E5%89%8D%E5%8F%AF%E7%94%A8%EF%BC%8C%E5%BE%AE%E4%BF%A1%E7%89%88%E6%9C%AC-3-3-0%EF%BC%89
来源: 快乐小王子🥝
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

@YalandHong
Copy link

输出的错误信息有点少。可以尝试一下加个DOCHAT_DEBUG=true环境变量,输出的错误信息更多。

就像这样:#131 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants