gpt4 book ai didi

docker - 无法连接到AWS中TeamCity构建代理上的Docker守护程序

转载 作者:行者123 更新时间:2023-12-02 20:01:29 25 4
gpt4 key购买 nike

我已经在Amazon Linux AMI上构建了代理计算机。它具有docker容器jetbrains/teamcity-agent:latest。我可以在TeamCity面板中看到构建代理。

当我尝试使用docker build / push命令运行build时出现此错误
Cannot login to registry docker.io (new); cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?; exit code 1 (Step: docker build (Docker))teamcity-agent有什么问题?

最佳答案

我猜想jetbrains/teamcity-agent:latest将以没有docker权限的用户身份运行。需要将该镜像中运行命令的用户添加到组docker中,或者通过ACL授予对docker socket /var/run/docker.sock的权限。请注意,这是root等效的。

关于docker - 无法连接到AWS中TeamCity构建代理上的Docker守护程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53239847/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com