Support pushing container images to repository namespace (like GitHub Packages) #14917

Closed
opened 2025-11-02 11:25:49 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @moemoequte on GitHub (Aug 31, 2025).

Feature Description

Currently when I push a Docker image to Gitea’s Container Registry, it is always created under my user namespace, regardless of whether I want it tied to a specific repository.

For example, following the docs:

docker build -t hello:latest .
docker tag hello:latest 192.168.3.1:3000/cialloo/hello/hello-image:latest
docker push 192.168.3.1:3000/cialloo/hello/hello-image:latest

This results in a container package created under my user namespace as:

cialloo/hello-image

But what I actually want is to associate the container package with the repository itself (similar to how ghcr.io/<owner>/<repo>/<image> works for GitHub Packages).

Feature request:

  • Allow pushing container images to a repository namespace, so that images appear under the repository’s packages instead of the user namespace.

  • Example desired path:

    192.168.3.1:3000/cialloo/hello/hello-image:latest
    

    should be attached to the cialloo/hello repository’s packages.

Screenshots

No response

Originally created by @moemoequte on GitHub (Aug 31, 2025). ### Feature Description Currently when I push a Docker image to Gitea’s Container Registry, it is always created under my **user namespace**, regardless of whether I want it tied to a specific repository. For example, following the docs: ```bash docker build -t hello:latest . docker tag hello:latest 192.168.3.1:3000/cialloo/hello/hello-image:latest docker push 192.168.3.1:3000/cialloo/hello/hello-image:latest ``` This results in a container package created under my user namespace as: ``` cialloo/hello-image ``` But what I actually want is to associate the container package **with the repository itself** (similar to how `ghcr.io/<owner>/<repo>/<image>` works for GitHub Packages). **Feature request:** * Allow pushing container images to a **repository namespace**, so that images appear under the repository’s packages instead of the user namespace. * Example desired path: ``` 192.168.3.1:3000/cialloo/hello/hello-image:latest ``` should be attached to the `cialloo/hello` repository’s packages. ### Screenshots _No response_
GiteaMirror added the topic/packagestype/proposal labels 2025-11-02 11:25:49 -06:00
Author
Owner

@moemoequte commented on GitHub (Aug 31, 2025):

Image Image
@moemoequte commented on GitHub (Aug 31, 2025): <img width="1902" height="906" alt="Image" src="https://github.com/user-attachments/assets/5ba788d5-8763-4f8b-835c-a8d466626f80" /> <img width="1905" height="497" alt="Image" src="https://github.com/user-attachments/assets/689f9c1c-846b-4f08-a20a-e5d41121002e" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14917