Notification texts go here Contact Us Buy Now!

How to properly dockerize maven project with jib

```html

Error: $ docker pull uranagivinod/openjdk8:latest Error response from daemon: pull access denied for uranagivinod/openjdk8, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Solution: The base image is not in the public Docker Hub repo. Try logging out of Docker and then logging back in.

Error: > make sure your credentials for 'registry-1.docker.io/library/demo-springboot-docker-0001968' are set up correctly.

Solution: The error is for the target image, not the base image. Check that your credentials for the Docker Hub repository are correct.

Solution: Try logging out of Docker and then adding the following options when making a Maven build: -D jib.to.auth.username="your-dockerhub-username" -Djib.to.auth.password="your-dockerhub-password"

Solution: Prefix the Docker Hub site name with registry.hub.docker.com in your pom.xml file.

    <to>
      <image>registry.hub.docker.com/hkmehandiratta/${project.name}:${project.version}</image>
    </to>
  

Solution: In the $USER/.docker/config.json file, replace "credsStore": "desktop" with "credStore":"desktop".

Solution: Run docker logout and then docker login. Enter your username and password to solve the problem.

```

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.