# Create docker package like github

**URL:** <https://forum.gitea.com/t/create-docker-package-like-github/8413>\
**Category:** General\
**Created:** [January 9, 2024, 5:37am UTC](https://forum.gitea.com/t/create-docker-package-like-github/8413 "2024-01-09T05:37:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vahidalvandi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/vahidalvandi/32/2985_2.png) [@vahidalvandi](https://forum.gitea.com/u/vahidalvandi)\
**Post date:** [January 9, 2024, 5:37am UTC](https://forum.gitea.com/t/create-docker-package-like-github/8413/1 "2024-01-09T05:37:18Z")

</div>

hi , i want to push self private docker image in my gitea server . Is this possible?

---

<div class="post-metadata">

**Author:** ![artur-borys](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@artur-borys](https://forum.gitea.com/u/artur-borys)\
**Post date:** [January 15, 2024, 6:41pm UTC](https://forum.gitea.com/t/create-docker-package-like-github/8413/2 "2024-01-15T18:41:39Z")

</div>

Hi!

Gitea has packages feature ([Package Registry | Gitea Documentation](https://docs.gitea.com/usage/packages/overview)), which includes container image repository ([Container Registry | Gitea Documentation](https://docs.gitea.com/usage/packages/container)).

What you have to do, is login via `docker login` to your Gitea instance. You should be able to do that with your username and password, or username and token. You can generate a token by going to \<YOUR\_GITEA\_INSTANCE\>/user/settings/applications. If you want to use a token, make sure to select package read and write permission.

After that run (replace \<YOUR\_GITEA\_INSTANCE\> with your instance FQDN):

```auto
docker login <YOUR_GITEA_INSTANCE>

```

You’ll be prompted for the username and password/token.

After that’s done, you should be able to push your image, by tagging it correctly, i.e:

```auto
docker build -t <YOUR_GITEA_INSTANCE>/<USERNAME>/<IMAGE_NAME>:<IMAGE_TAG> .
docker push <YOUR_GITEA_INSTANCE>/<USERNAME>/<IMAGE_NAME>:<IMAGE_TAG>

```

Let me know if you have any further questions
