docker-wxwork icon indicating copy to clipboard operation
docker-wxwork copied to clipboard

卡在Starting DoWork,没有显示出UI

Open BigGunLive opened this issue 4 years ago • 3 comments

   ____     __        __         _
  |  _ \  __\ \      / /__  _ __| | __
  | | | |/ _ \ \ /\ / / _ \| '__| |/ /
  | |_| | (_) \ 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/ ...

BigGunLive avatar May 25 '20 06:05 BigGunLive

同。 OS: Manjaro 20.1 Mikah

orangeshinee avatar Aug 18 '20 16:08 orangeshinee

same problem.

ubuntu18.04

kklots avatar Nov 18 '20 09:11 kklots

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. :)

DavieHR avatar Apr 08 '21 07:04 DavieHR