A windows wechat client in container that supports pulseaudio but is bloatware.
140
中文参见:
https://7cmb.com/wine-wechat-in-docker-%E5%AE%9E%E8%B7%B5/
Prerequisites:
One Line Command:
curl -sL https://gist.githubusercontent.com/7cmb/04e6fc961f77d899cbed64c197547e76/raw/33b71919528a5b7721d3bf6a2a8c97d8ce0ae008/toyChat.sh | bash
Create A Container Without Sound:
xhost +local:
docker run \
-d \
--name toyChat-base \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
--ipc=host \
-u 1000 \
-e GTK_IM_MODULE=fcitx \
-e QT_IM_MODULE=fcitx \
-e XMODIFIERS=@im=fcitx \
-e DefaultIMModule=fcitx \
-e TZ="<TIMEZONE>" \
-v "/path/to/your/data/dir":/root/wine64/drive_c/users/wx/Documents/WeChat\ Files:rw \
7cmb/toychat:v0.01
Create A Container With Sound:
xhost +local:
sudo cat > '/tmp/pulseaudio.client.conf' <<EOF
default-server = unix:/tmp/pulseaudio.socket
# Prevent a server running in the container
autospawn = no
daemon-binary = /bin/true
# Prevent the use of shared memory
enable-shm = false
EOF
docker run \
-d \
--name toyChat-pulseaudio \
-e PULSE_SERVER=unix:/tmp/pulseaudio.socket \
-e PULSE_COOKIE=/tmp/pulseaudio.cookie \
-v /tmp/pulseaudio.socket:/tmp/pulseaudio.socket \
-v /tmp/pulseaudio.client.conf:/etc/pulse/client.conf \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
--ipc=host \
-u 1000 \
-e GTK_IM_MODULE=fcitx \
-e QT_IM_MODULE=fcitx \
-e XMODIFIERS=@im=fcitx \
-e DefaultIMModule=fcitx \
-e TZ="<TIMEZONE>" \
-v "/path/to/your/data/dir":/root/wine64/drive_c/users/wx/Documents/WeChat\ Files:rw \
7cmb/toychat:v0.01
Content type
Image
Digest
sha256:54e093a55…
Size
2 GB
Last updated
over 2 years ago
docker pull 7cmb/toychat:v0.01