gpt4 book ai didi

docker - 从Azure Pipeline Task构建Docker镜像

转载 作者:行者123 更新时间:2023-12-02 19:52:03 25 4
gpt4 key购买 nike

在整理文档中
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops

提到-“确保您的管道代理具有访问Docker守护程序的权限。”如何检查,配置它并在必要时提供权限

在装有docker的VM机器上构建docker镜像时出现以下错误:

open //./pipe/docker_engine: Access is denied. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

已经使用以下命令检查docker守护进程是否正在运行:
docker --version 

我可以看到docker版本
Docker version 19.03.5, build 2ee0c57608

最佳答案

It is mentioned that - "Be sure your pipelines agent has permission to access the Docker daemon." How to check it, configure it and provide the permission if necessary.



运行代理的用户是 。您需要确保该用户具有足够的权限。或者,您可以将您的代理切换为以与运行docker daemon相同的用户身份运行。

有关错误的更多详细信息,您也可以引用以下类似问题:container jobs fails to connect to docker daemon on Windows Server 2019

关于docker - 从Azure Pipeline Task构建Docker镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59994983/

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