您的位置:首页 > 财经 > 金融 > 拓者设计吧邀请码免费_中国建设银行官网首页登录入口_近三天的国内外大事_排位及资讯

拓者设计吧邀请码免费_中国建设银行官网首页登录入口_近三天的国内外大事_排位及资讯

2024/11/17 7:11:21 来源:https://blog.csdn.net/yingmohuanzhou/article/details/142470819  浏览:    关键词:拓者设计吧邀请码免费_中国建设银行官网首页登录入口_近三天的国内外大事_排位及资讯
拓者设计吧邀请码免费_中国建设银行官网首页登录入口_近三天的国内外大事_排位及资讯

文章目录

  • 报错 permission denied
  • 处理

报错 permission denied

ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission deniedThe terminal process "/usr/bin/bash '-c', 'docker build --pull --rm -f "Dockerfile" -t 4dsegment3:jzheng0 "."'" failed to launch (exit code: 1).
Terminal will be reused by tasks, press any key to close it.

处理

The error message indicates that your user does not have the necessary permissions to access the Docker daemon. To resolve this, you can add your user to the docker group and then restart your session. Here are the steps:

Add your user to the docker group:

sudo usermod -aG docker $USER

Restart your session:

Log out and log back in, or
Restart your computer, or
Use the following command to start a new shell with the updated group

newgrp docker

membership:
After performing these steps, try running the docker build command again.

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com