Docker plugin issue

I am using “dockerfile-maven-plugin” in POM to build the docker image of a service. However I am getting below error message:-
“com.spotify.docker.client.exceptions.DockerException: pull access denied for xxxxx/ImageNameHere, repository does not exist or may require ‘docker login’”
I have tried below steps but still facing same issue:

  1. I have logged in with Docker Login command successfully.(By using my credentials which have access to our private repository in docker hub)
    2)Also downloaded the latest docker version 18.x but still facing same issue.

Note: I have access to our private repository and able pull and push the Images.