Giter Club home page Giter Club logo

Comments (13)

jlyheden avatar jlyheden commented on May 18, 2024 4

Same issue here when pushing to Artifactory, revert to version 1.3.3 of the plugin solved it.

from dockerfile-maven.

khajapm avatar khajapm commented on May 18, 2024 2

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.

lipengbin avatar lipengbin commented on May 18, 2024

Ihave the same error!

from dockerfile-maven.

lipengbin avatar lipengbin commented on May 18, 2024

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.

dbeaumont avatar dbeaumont commented on May 18, 2024

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.

adamszadkowski avatar adamszadkowski commented on May 18, 2024

The same issue here

from dockerfile-maven.

mnoky avatar mnoky commented on May 18, 2024

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.

DominiqueComte avatar DominiqueComte commented on May 18, 2024

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.

SeriyBg avatar SeriyBg commented on May 18, 2024

I have the same issue with version 1.3.6. I have described it here. Has anyone solved it?

from dockerfile-maven.

victal avatar victal commented on May 18, 2024

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.

SimonKlausLudwig avatar SimonKlausLudwig commented on May 18, 2024

Same issue with dockerhub

from dockerfile-maven.

jose-lpa avatar jose-lpa commented on May 18, 2024

If anyone minds... I've got it working by login first to Dockerhub, and then pushing:

  1. docker login (insert your username and password...)
  2. 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.

stale avatar stale commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.