Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions denied #181

Closed
khewweifeng opened this issue Jul 10, 2022 · 3 comments
Closed

Permissions denied #181

khewweifeng opened this issue Jul 10, 2022 · 3 comments

Comments

@khewweifeng
Copy link

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
Copy link
Author

image

OS details

@khewweifeng
Copy link
Author

Found the solution = #55 (comment)

@WendaoLee
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants