您的位置:首页 > 游戏 > 手游 > 镜像拉取失败:[ERROR] Failed to pull docker image

镜像拉取失败:[ERROR] Failed to pull docker image

2024/10/6 20:32:11 来源:https://blog.csdn.net/qq_29385297/article/details/139641660  浏览:    关键词:镜像拉取失败:[ERROR] Failed to pull docker image

问题描述


执行 bash docker/scripts/dev_start.sh 命令提示错误:

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post “http://%2Fvar%2Frun%2Fdocker.sock/v1.45/images/create?fromImage=registry.baidubce.com%2Fapolloauto%2Fapollo&tag=dev-x86_64-18.04-20240326_1453”: dial unix /var/run/docker.sock: connect: permission denied
[ERROR] Failed to pull docker image :
registry.baidubce.com/apolloauto/apollo:dev-x86_64-18.04-20240326_1453


原因分析:

权限被拒绝 permission denied


解决方案:

命令添加权限重新执行:

sudo bash docker/scripts/dev_start.sh

操作成功可以看到提示输出:

[ OK ] Congratulations! You have successfully finished setting up Apollo Dev Environment.
[ OK ] To login into the newly created apollo_dev_root container, please run the following command:
[ OK ] bash docker/scripts/dev_into.sh
[ OK ] Enjoy!

版权声明:

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

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