问题描述
执行 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!