# Unable to Push Docker Image

**URL:** <https://forums.docker.com/t/unable-to-push-docker-image/137138>\
**Category:** Docker Hub\
**Created:** [August 6, 2023, 6:16pm UTC](https://forums.docker.com/t/unable-to-push-docker-image/137138 "2023-08-06T18:16:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibhushit0702](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@vibhushit0702](https://forums.docker.com/u/vibhushit0702)\
**Post date:** [August 6, 2023, 6:16pm UTC](https://forums.docker.com/t/unable-to-push-docker-image/137138/1 "2023-08-06T18:16:26Z")

</div>

Hi,

I am trying to push my docker images but it is giving me an error saying access denied.  
I have tried all the solutions provided in the following link.

> [@Docker push - Error - requested access to the resource is denied](https://forums.docker.com/t/docker-push-error-requested-access-to-the-resource-is-denied/64468):
>
> Can someone help me with the following problem? 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 af8b1…

Please help me in resolving the issue.  
Also attaching the error SS.

 ![image](https://global.discourse-cdn.com/docker/original/3X/f/c/fcef96062162bd510362a93d2446dbb01a633ed9.png)

---

<div class="post-metadata">

**Author:** ![meyay](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/meyay/32/34000_2.png) [@meyay](https://forums.docker.com/u/meyay)\
**Post date:** [August 6, 2023, 6:46pm UTC](https://forums.docker.com/t/unable-to-push-docker-image/137138/2 "2023-08-06T18:46:22Z")

</div>

A user called `banking` exists on DockerHub, but no repository called `accounts`.  
If you are really the owner or member of the group `banking`, you need to create the repository first.

Though if you are not the user `banking` (or the owner, nor a member of the group), than it’s high likely that you tagged your image wrong while building. Of course, you won’t be able to push an image to someone else’s repository.

If your user is `x` and your repo is `y`. Then you need to tag your image as `x/y:mytag`, and push `x/y:mytag`.

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [August 6, 2023, 8:38pm UTC](https://forums.docker.com/t/unable-to-push-docker-image/137138/3 "2023-08-06T20:38:22Z")

</div>

Your username on the forum should be your username on Docker Hub. Unless you have another user or an organization called “banking” you won’t be able to name your image like that. And of course you need to be logged in with a user that has access to the “banking” account.

> [@meyay](#):
>
> you need to create the repository first.

That is actually not required. I always create it before pushing but I remembered someone pointed out some years ago that we could just push images if we have access to the namespace. I tried again and worked.
