huan / docker-wechat

DoChat is a Dockerized WeChat (盒装微信) PC Windows Client for Linux
https://hub.docker.com/r/zixia/wechat
Apache License 2.0
2.23k stars 199 forks source link

Permissions denied #181

Closed khewweifeng closed 1 year ago

khewweifeng commented 1 year ago

Tried both command still same result (permissions denied)

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash

curl -sL https://gitee.com/mirrors/dochat/raw/main/dochat.sh | bash

result as below

$ sudo curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash

   ____         ____ _           _
  |  _ \  ___  / ___| |__   __ _| |_
  | | | |/ _ \| |   | '_ \ / _` | __|
  | |_| | (_) | |___| | | | (_| | |_
  |____/ \___/ \____|_| |_|\__,_|\__|

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

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

  DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

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

🚀 Pulling the docker image...

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=zixia%2Fwechat&tag=3.3.0.115": dial unix /var/run/docker.sock: connect: permission denied kurinorton@poro:~ $ curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash

   ____         ____ _           _
  |  _ \  ___  / ___| |__   __ _| |_
  | | | |/ _ \| |   | '_ \ / _` | __|
  | |_| | (_) | |___| | | | (_| | |_
  |____/ \___/ \____|_| |_|\__,_|\__|

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

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

  DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

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

🚀 Pulling the docker image...

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=zixia%2Fwechat&tag=3.3.0.115": dial unix /var/run/docker.sock: connect: permission denied kurinorton@poro:~ $ curl -sL https://gitee.com/mirrors/dochat/raw/main/dochat.sh | bash

   ____         ____ _           _
  |  _ \  ___  / ___| |__   __ _| |_
  | | | |/ _ \| |   | '_ \ / _` | __|
  | |_| | (_) | |___| | | | (_| | |_
  |____/ \___/ \____|_| |_|\__,_|\__|

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

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

  DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

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

🚀 Pulling the docker image...

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=zixia%2Fwechat&tag=3.3.0.115": dial unix /var/run/docker.sock: connect: permission denied

khewweifeng commented 1 year ago

image

OS details

khewweifeng commented 1 year ago

Found the solution = https://github.com/huan/docker-wechat/issues/55#issuecomment-648545331

WendaoLee commented 1 year ago

This is the permission problem.You can use

sudo gpasswd -a $USER docker

to add your user to the group docker so you can have permission to use docker pull. The other resolution is to to download dochat.sh and run it with sudo in your current machine.