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