我无法使用以下命令将docker镜像推送到集线器:
mvn clean package docker:build -DpushImage
每次我得到以下回复:
[WARNING] Failed to push jdruwe/k8s-product-owner,retrying in 10 seconds (5/5).
...
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (default-cli) on project k8s-product-owner: Exception caught: unauthorized: authentication required -> [Help 1]
docker login -u jdruwe https://index.docker.io/v1/
OR
docker login
我确实在集线器上创建了一个空仓库,试图修复它:
有任何想法吗?
最佳答案
您是否正确配置了身份验证设置?
原文链接:https://www.f2er.com/docker/436323.html用户名和密码可以在settings.xml中设置:
然后,pom引用这些设置:
更多详细信息可在此处找到:https://github.com/spotify/docker-maven-plugin#authenticating-with-private-registries