Skip to content

Instantly share code, notes, and snippets.

@BruceWind
Last active August 27, 2021 06:01
Show Gist options
  • Save BruceWind/23ea8cbba774e7b1d5ddaaa520ad66c0 to your computer and use it in GitHub Desktop.
Save BruceWind/23ea8cbba774e7b1d5ddaaa520ad66c0 to your computer and use it in GitHub Desktop.
linux使用docker安装启动企业微信

https://github.com/BoringCat/docker-WXWork

 docker run -d --name wechat --device /dev/snd --ipc host \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v $HOME/WXWork:/WXWork \
    -v $HOME:/temp \
    -v $HOME/wine-WXWork:/home/wechat/.deepinwine/Deepin-WXWork \
    -e DISPLAY=unix$DISPLAY \
    -e XMODIFIERS=@im=ibus \
    -e QT_IM_MODULE=ibus \
    -e GTK_IM_MODULE=ibus \
    -e AUDIO_GID=`getent group audio | cut -d: -f3` \
    -e GID=`id -g` \
    -e UID=`id -u` \
    -e DPI=96 \
    -e WAIT_FOR_SLEEP=1 \
    boringcat/wechat:work

if something wrong:

run docker container stop wechat or docker container rm wechat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment