I had the same problem and the reason turned out to be a private parent image. As explained here , your image is built on top of the base image and, in most cases, parent images. When you try to insert your latest changes into the docker hub, your account must have access to all the parent images, otherwise this will result in this error. In my case, the user I was trying to click did not have access to the image that I used as the base.
You can easily identify a personal image by its hash.
docker images -a | grep <hash>
If you have access to a private repository, you can fix this by adding the user you click to the collaborator list. However, if you do not, you will have to tag the private repository for your user and apply the rest of the changes manually.
Hope this helps;)
source share