First I logged in to Docker by executing the command:
$ docker login
It includes the registered user and password, but without problems when sending an image to the Docker Hub. When I run the following command:
$ docker push projetofinal2_web
The following error occurs:
The push refers to a repository [docker.io/library/projetofinal2_web]
6e2e1155d419: Preparing
1cb633a23e71: Preparing
6b91dd5a05f0: Preparing
7dc8d752af64: Preparing
af8b16133eb3: Preparing
27951393f8e7: Waiting
f89067d6e30e: Waiting
5129f19da2c9: Waiting
34929ec591c4: Waiting
e02b32b1ff99: Waiting
f75e64f96dbc: Waiting
8f7ee6d76fd9: Waiting
c23711a84ad4: Waiting
90d1009ce6fe: Waiting
denied: requested access to the resource is denied
I have verified that the projetofinal2_web image actually exists using the command:
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
projetofinal2_web latest c27ee5582377 17 minutes ago 983MB
<none> <none> 082bd1514477 28 hours ago 918MB
<none> <none> 148f5843aabb 2 days ago 981MB
<none> <none> ac09ab02e2f3 2 days ago 981MB
postgres latest f9b577fb1ed6 6 days ago 311MB
python 3.6.7 1ec4d11819ad 2 weeks ago 918MB
I also added myusername as a contributer to by docker hub repo. I’m not sure whether or not this final step is needed as I was trying everything at the time to get it to work.
If you’re using private repositories and have gone over the limit, try reducing the # of repository to within limits, then deleting the repository you get this err msg on and re-push.
I’ve had this problem occur when creating a private repository that takes the # of repositories outside of the limits (e.g. 51 out of 50 private repositories). The err msg continues even after reducing # of repositories and the fix is to delete the repository created while account had gone over limit and re-push the image.