# Can login but cannot push Docker image on registry

**URL:** <https://forum.gitea.com/t/can-login-but-cannot-push-docker-image-on-registry/8815>\
**Category:** Gitea Usages\
**Created:** [March 23, 2024, 2:29pm UTC](https://forum.gitea.com/t/can-login-but-cannot-push-docker-image-on-registry/8815 "2024-03-23T14:29:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cabbage](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/cabbage/32/4523_2.png) [@Cabbage](https://forum.gitea.com/u/Cabbage)\
**Post date:** [March 23, 2024, 2:29pm UTC](https://forum.gitea.com/t/can-login-but-cannot-push-docker-image-on-registry/8815/1 "2024-03-23T14:29:56Z")

</div>

Hello,

I am trying to push a Docker image on my selhosted Gitea instance, but I am struggling to do it.

When I type docker login [gitea.mywebsite.com](http://gitea.mywebsite.com) I get the following message, proving that I am actually logged in:  
“Authenticating with existing credentials…”  
“Login Succeeded”

But when trying to push the image, I get the following message:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/4/4afc3c999d8471942052a9623436948c04c92db7.png)

When I searched for this problem online, I found that one of the reasons could be the name of the image, but I did follow the naming convention provided here: [Container Registry | Gitea Documentation](https://docs.gitea.com/usage/packages/container), so I have no idea what could be wrong.

Does anybody have an idea what might be the problem ?

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [March 25, 2024, 9:42am UTC](https://forum.gitea.com/t/can-login-but-cannot-push-docker-image-on-registry/8815/2 "2024-03-25T09:42:23Z")

</div>

What’s your Gitea version?

---

<div class="post-metadata">

**Author:** ![Cabbage](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/cabbage/32/4523_2.png) [@Cabbage](https://forum.gitea.com/u/Cabbage)\
**Post date:** [March 25, 2024, 10:02am UTC](https://forum.gitea.com/t/can-login-but-cannot-push-docker-image-on-registry/8815/3 "2024-03-25T10:02:04Z")

</div>

I’m currently using Gitea 1.21.7

---

<div class="post-metadata">

**Author:** ![Cabbage](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/cabbage/32/4523_2.png) [@Cabbage](https://forum.gitea.com/u/Cabbage)\
**Post date:** [March 31, 2024, 5:07pm UTC](https://forum.gitea.com/t/can-login-but-cannot-push-docker-image-on-registry/8815/4 "2024-03-31T17:07:13Z")

</div>

[FIXED IT]  
When I went to “[git.example.com/admin](http://git.example.com/admin)”, I saw a warning message saying that I was using two depracted config options:

1. ‘[server]’ ‘LFS\_CONTENT\_PATH’  
That I changed to ‘[lfs]’ ‘PATH’ in “gitea/gitea/conf/app.ini”

2. ‘[log]’ ‘ROUTER’  
That I changed to ‘[log]’ ‘logger.router.MODE’ in “gitea/gitea/conf/app.ini”

I also noticed that the [server] ROOT\_URL was actually using HTTP instead of HTTPS, so I changed it too, I have no idea if this had any incidence though.

Now it works

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [April 19, 2024, 5:56am UTC](https://forum.gitea.com/t/can-login-but-cannot-push-docker-image-on-registry/8815/5 "2024-04-19T05:56:49Z")

</div>


