
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
DoChat(盒装微信) is a Dockerized WeChat(微信) PC Windows Client for Linux.
!https://huan.github.io/docker-wechat/images/dochat.png
Image Credit: Docker 101 + Icon Finder, and Ps-ed by Ruoxin Song
WeChat PC will be started on your Linux desktop by running the following one-line command:
shcurl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash
Just copy/paste the above one-line command to your terminal and press Enter. Then the WeChat PC should appear in your XWindows desktop shortly.
!https://huan.github.io/docker-wechat/images/term-dochat.png
It just works out-of-the-box with one-line of shell command!
Ctrl+V!https://huan.github.io/docker-wechat/images/screenshot-dochat.png
sudo apt update && apt install docker.io to install Docker for Ubuntu users)DOCHAT_DPIDPI Scale Factors for graphic screen resolution.
| DPI | Scale factor |
|---|---|
| 96 | 100% |
| 120 | 125% |
| 144 | 150% |
| 192 | 200% |
Default: 120
To enlarge the window & fonts size:
shcurl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \ | DOCHAT_DPI=192 bash
DOCHAT_SKIP_PULLIf you do not want to pull docker image for the latest version at startup everytime, you can set DOCHAT_SKIP_PULL environment variable.
shcurl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \ | DOCHAT_SKIP_PULL=true bash
In case you have downloaded dochat.sh:
shDOCHAT_SKIP_PULL=true ./dochat.sh
DOCHAT_DEBUGShow more debug log messages.
shcurl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \ | DOCHAT_DEBUG=true bash
DOCHAT_WECHAT_VERSIONUse a specific version for WeChat.
You can get a full list of the supported versions from Docker Hub Image Tags at https://hub.docker.com/r/zixia/wechat/tags
For example:
shcurl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \ | DOCHAT_WECHAT_VERSION=2.7.1.85 bash
If you want to control everything by yourself, for example, open multiple WeChat PC client on your desktop; then, you might want to inspect the https://github.com/huan/docker-wechat/blob/master/dochat.sh in our repository and try the following docker command:
shdocker run \ --name DoChat \ --rm \ -i \ \ -v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \ -v "$HOME/DoChat/Applcation Data":'/home/user/.wine/drive_c/users/user/Application Data/' \ -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
Modify it whatever you want to fulfill your needs.
DOCHAT_WECHAT_VERSION=2.7.1.85)Install Gnome Extension: Top Icons Plus Git by bijignome
Note 1: there's almost half dozen of the
TopIconsextensions with very similar name: TopIcons, TopIcons Redux, TopIcons Plus, TopIcons Plus Git, TopIconsFix. Use TopIcons Plus Git, it's the right one.Note 2: The
TopIcons Plushas the bug that cause thewineitself shows a window on your desktop. (https://github.com/huan/docker-wechat/issues/19)
When you encounter problem that the app exit with code 5 on openSUSE Leap, you need to disable X server access control to allow any user to connect to the X server before you start the app. Use below command to disable it:
$ xhost +
This could be caused by an old bug in wine with multiple monitor setup. Workaround is to start it up with single monitor and then switch to multiple monitors
This behavior may cause the view disappear when you use the Join Displays mode, so you need change the mode to mirrors when the app start, this script may help:
Bash#bin/bash xrandr --output HDMI-1-2 --same-as eDP-1-1 DOCHAT_SKIP_PULL=true /home/yuhui/App/wechat/dochat.sh & sleep 5 xrandr --output HDMI-1-2 --right-of eDP-1-1
Change the HDMI-1-2 to your external display name and eDP-1-1 to your built in display name. Display more than two, link to this.
Notice: you must drag the login dialog to built in display side when the process sleep 5, otherwise the view may stuck in the external display.
DOCHAT_WECHAT_VERSION to select WeChat version.shcurl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \ | DOCHAT_WECHAT_VERSION=2.8.0.112 bash
DOCHAT_DPI to set DPI scale factors for graphicg screen resolution.Got a great logo from my art friend Ruoxin SONG.
The first working version, cheers!
Project created.
https://github.com/huan (李卓桓) ***






来自真实用户的反馈,见证轩辕镜像的优质服务