我正在尝试设置bitbucket管道并使用docker run
语句。但是构建失败并显示以下错误消息:
docker: Error response from daemon: authorization denied
这是管道配置
pipelines:
default:
- step:
script:
# build the Docker image (this will use the Dockerfile in the root of the repo)
- docker build -t solc .
# Test the solidity files in project
- docker run solc
问题:我没有执行任何需要授权的操作。为什么错误消息涉及授权。
答案 0 :(得分:1)
您正在共享环境中运行docker命令。截至本期问题,Bitbucket不允许您出于安全目的在该环境中运行docker run
命令。您可以运行的docker命令列表(截至本问题发布之时)为:
Docker是一个客户端/服务器应用程序。您正在运行客户端命令,并且bitbucket已在dockerd守护程序上保护其环境。
您可以看到自首次回答此问题以来已扩展的docker integration from their documentation的当前功能。截至本次更新时,它会过滤特权容器并在预定义的子目录之外安装主机卷。