Comments (13)
Same issue here when pushing to Artifactory, revert to version 1.3.3 of the plugin solved it.
from dockerfile-maven.
Same issue while image push to private registry using maven spotify plugin
Failed to execute goal com.spotify:docker-maven-plugin:0.4.11:push (push-image) on project abc : Exception caught: denied: requested access to the resource is denied
Do have the registry server configured in maven settings.xml. Not sure whats missing.
from dockerfile-maven.
Ihave the same error!
from dockerfile-maven.
I have built a image。
It's showing in docker local repository.
I can push the image to private repository by docker push command.
But,can't push the image by maven cmd.
from dockerfile-maven.
I have the same issue on my mac (dockerfile-maven-plugin version 1.3.5)
Pushing on a public or private repo doesn't work.
Reverting to version 1.3.3 doesn't work.
For mac users, it might be releated to the new keychain credentials support in docker client (mine is 17.06.2-ce) : spotify/docker-client#657
from dockerfile-maven.
The same issue here
from dockerfile-maven.
I had the same issue with version 1.3.6 and was able to fix this by following the advice from user robege found in issue 79. Basically, change the docker-client dependency to 8.8.4
from dockerfile-maven.
solved a (similar, I think) issue by using useMavenSettingsForAuth=true and adding a server with id docker.io in my ~/.m2/settings.xml file
from dockerfile-maven.
I have the same issue with version 1.3.6. I have described it here. Has anyone solved it?
from dockerfile-maven.
I had the same problem recently, tried every version from 1.3.2 to 1.3.7 with and without changing the docker-client version as suggested above and nothing worked.
In my case, it seems that the problem happened because I had a question mark in my password (haven't tried with other special chars) - after changing passwords to a string of the same size with only letters and numbers mvn dockerfile:push
started working, and after changing back the command stopped working again.
I'll try to do a couple more tests to check if the problem is on the plugin or the docker api, and if useMavenSettingsForAuth=true
solves the problem as well
EDIT: After a couple more tests, the problem I had happens only when the image I'm trying to push depends on a private image (i.e. with FROM myuser/myprivateimage
on the Dockerfile) but I'm not sure if the problem lies on the plugin, docker-client or the docker api itself
from dockerfile-maven.
Same issue with dockerhub
from dockerfile-maven.
If anyone minds... I've got it working by login first to Dockerhub, and then pushing:
docker login
(insert your username and password...)mvn dockerfile:push
For more info, I didn't have any ~/.dockercfg
or ~/.docker/config.json
in my local, unlike is specified in the documentation.
Dockerfile-maven plugin version I use is 1.3.7.
from dockerfile-maven.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from dockerfile-maven.
Related Issues (20)
- Failed to execute goal com.spotify:docker-maven-plugin:1.1.1:push (push-image) on project HOT 7
- Caused by: com.spotify.docker.client.exceptions.DockerException: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.FileNotFoundException: \\.\pipe\docker_engine (The system cannot find the specified file) HOT 2
- idea开发环境下 ,用dockerfile-maven插件把springboot项目 打包成docker镜像超超超慢,什么原因 HOT 1
- Spring boot project no main manifest attribute HOT 1
- [BUG] -Ddockerfile.skip=yes not working HOT 1
- java.lang.ExceptionInInitializerError when deploying a bar file to ESB HOT 1
- Very slow HOT 3
- Cannot run program "docker-credential-gcloud": CreateProcess error=2, 系统找不到指定的文件。 HOT 1
- dockerHostUri didn't work HOT 3
- raspberry pi mvn dockerfile:build fail HOT 6
- How to building Docker Image in Maven Project of multi-module HOT 2
- Cannot push to ECR HOT 2
- Incompatibility with podman-docker HOT 2
- GCloud Credential Helper on Windows doesn't work out-of-the-box HOT 2
- dockerfile-maven-plugin tries to decrypt passwords given as property in settings.xml HOT 1
- Java Virtual machine say Error:Invalid or corupt file HOT 2
- cacheFrom does not work HOT 2
- ImageRef.parseRegistryUrl:112 HOT 1
- [Question] How to push the docker image with different tags to multiple registries when deploying HOT 1
- Plugin fails to run on Apple silicon (M1, M1 Pro, M1 Max) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerfile-maven.