admin 管理员组文章数量: 1184232
dockerfile
com.spotify.docker.client.exceptions.DockerException: denied: requested access to the resource is denied
代码是提交到gitlab上自动触发CI的, 运行于gitlab-runner容器之中的,正常我在本机测试docker login -u repoUserName -p repoPassword https://localhost, succeed之后执行docker push是正常可以push成功的,在没有docker login的情况下执行push会报错提示"requested access to the resource is denied", 但是在com.spotify:dockerfile-maven-plugin中配置好了
<plugin><groupId>com.spotify</groupId><artifactId>dockerfile-maven-plugin</artifactId><version>${version}</version><configuration><username>repoUserName</username><password>repoPassword</password><repository>${docker.image.prefix}/${project.artifactId}</repository><buildArgs><JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE></buildArgs></configuration>
</plugin>
相当于连接到了docker服务端,为什么还是出现docker未登录的情况一样报错"requested access to the resource is denied"???
本文标签: dockerfile
版权声明:本文标题:dockerfile 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1687700218a130802.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论