zoukankan      html  css  js  c++  java
  • Solving Docker permission denied while trying to connect to the Docker daemon socket

    The error message tells you that your current user can’t access the docker engine, because you’re lacking permissions to access the unix socket to communicate with the engine.

    As a temporary solution, you can use sudo to run the failed command as root.
    However it is recommended to fix the issue by adding the current user to the docker group:

    Run this command in your favourite shell and then completely log out of your account and log back in (if in doubt, reboot!):

    • sudo usermod -a -G docker $USER

    After doing that, you should be able to run the command without any issues. Run docker run hello-world as a normal user in order to check if it works. Reboot if the issue still persists.

    Logging out and logging back in is required because the group change will not have an effect unless your session is closed.

  • 相关阅读:
    关于钩子函数的详细解答:
    Vue实现回到顶部
    Vue实现Rate组件(星星评分)
    Vue-router 路由模式
    javascript中实现跨域的方式
    Promise
    webpack使用
    小程序登录
    api工厂的sdk的使用
    面试题划“重点”
  • 原文地址:https://www.cnblogs.com/theWinter/p/10142534.html
Copyright © 2011-2022 走看看