huan / docker-wxwork

DoWork is a Dockerized WeChat Work (盒装企业微信) PC Windows Client for Linux
https://hub.docker.com/r/zixia/wxwork
Apache License 2.0
126 stars 15 forks source link

卡在Starting DoWork,没有显示出UI #4

Open BigGunLive opened 4 years ago

BigGunLive commented 4 years ago
   ____     __        __         _
  |  _ \  __\ \      / /__  _ __| | __
  | | | |/ _ \ \ /\ / / _ \| '__| |/ /
  | |_| | (_) \ V  V / (_) | |  |   <
  |____/ \___/ \_/\_/ \___/|_|  |_|\_\

  https://github.com/huan/docker-wxwork

            +--------------+
           /|             /|
          / |            / |
         *--+-----------*  |
         |  |           |  |
         |  |   盒装    |  |
         |  |   企业    |  |
         |  +-- 微信 ---+--+
         | /            | /
         |/             |/
         *--------------*

  DoWork /dɑɑˈwɜːk/ (Docker-wxWork) is:

  📦 a Docker image
  🤐 for running PC Windows WeChat Work
  💻 on your Linux desktop
  💖 by one-line of command

🚀 Pulling the latest docker image...

Using default tag: latest latest: Pulling from zixia/wxwork Digest: sha256:4a76020fd8af4c86a897fa076926978dc3f9b36304d54e7ae141b18d0aec9521 Status: Image is up to date for zixia/wxwork:latest docker.io/zixia/wxwork:latest

🚀 Pulling the latest docker image done. 🚀 Starting DoWork /dɑɑˈwɜːk/ ...

orangeshinee commented 4 years ago

同。 OS: Manjaro 20.1 Mikah

kklots commented 4 years ago

same problem.

ubuntu18.04

DavieHR commented 3 years ago

hi everyone.

Maybe I found the reason why it will cause this issue.

When i turned on the debug macro, i found the program fall into endless-loop. In the entrypoint.sh file the line 138, you will find that the script checks the user-group id.

if [ "$(id -u)" -ne '0' ]; then

i don't know the phenomenon in ubuntu 19, but, in ubuntu 18.04, when you run the bash script in root. id -u will return 0, and set the global env is also invalid. so the function "setupUserGroup" in line 122 also will be invalid.

All in all, if you want to use wx-work in ubuntu 18.04, you must use your docker in user env.

How to set docker in non-root. please follow these instructions below. (you can also find these codes in site [https://docs.docker.com/engine/install/linux-postinstall/]())

sudo groupadd docker

sudo usermod -aG docker $USER

newgrp docker 

THX. :)