"docker pull" in container registry is hard-coded... #14735

Open
opened 2025-11-02 11:21:33 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @mteufel on GitHub (Jul 10, 2025).

Feature Description

When you are using Gitea Packages as a container registry for each pushed image you can view a page which shows you the command to pull it. I think this is implemented in the file shown in the screenshot. The command "docker" (line 14) seems to be hardcoded there, but there are also users who dont use docker, maybe they use podman... so it would be nice to make this hardcoded text "docker" changeable via configuration.

Image

Screenshots

No response

Originally created by @mteufel on GitHub (Jul 10, 2025). ### Feature Description When you are using Gitea Packages as a container registry for each pushed image you can view a page which shows you the command to pull it. I think this is implemented in the file shown in the screenshot. The command "docker" (line 14) seems to be hardcoded there, but there are also users who dont use docker, maybe they use podman... so it would be nice to make this hardcoded text "docker" changeable via configuration. <img width="1700" height="612" alt="Image" src="https://github.com/user-attachments/assets/9fb1100a-b743-4874-87c4-483a7daa7075" /> ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 11:21:33 -06:00
Author
Owner

@silverwind commented on GitHub (Jul 10, 2025):

In most cases with podman, docker is an alias to podman, but I guess for really pedantic users, we can make this string configurable. Ideally it would be a per-user setting.

@silverwind commented on GitHub (Jul 10, 2025): In most cases with podman, `docker` is an alias to `podman`, but I guess for really pedantic users, we can make this string configurable. Ideally it would be a per-user setting.
Author
Owner

@TheFox0x7 commented on GitHub (Jul 10, 2025):

Hi pedantic user here who doesn't have the alias set (which breaks stuff for some apps that rely on docker command) :)

How about not adding docker pull at all? Taking github as an example of a terrible UX for me:
https://github.com/go-gitea/gitea/pkgs/container/gitea

I have to explicitly select the image name, which copies the entire command and then copy the part I'm interested in. I'd argue that for things like compose, quadlets, kubernetes files or UI platforms user is first interested in image name instead of a full pull command.

Plus that's fully platform agnostic out of the box.

Quay is slightly better but that's redhat which also started podman efforts. The digest copy is a nice feature though.

@TheFox0x7 commented on GitHub (Jul 10, 2025): Hi pedantic user here who doesn't have the alias set (which breaks stuff for some apps that rely on docker command) :) How about not adding docker pull at all? Taking github as an example of a terrible UX for me: https://github.com/go-gitea/gitea/pkgs/container/gitea I have to explicitly select the image name, which copies the entire command and then copy the part I'm interested in. I'd argue that for things like compose, quadlets, kubernetes files or UI platforms user is first interested in image name instead of a full pull command. Plus that's fully platform agnostic out of the box. [Quay is slightly better](https://quay.io/repository/freeipa/freeipa-server?tab=tags) but that's redhat which also started podman efforts. The digest copy is a nice feature though.
Author
Owner

@silverwind commented on GitHub (Jul 10, 2025):

Or we make a tabbed UI that allows selecting between docker and podman. The problem is not new in itself, for JS package manager there exists a similar situation with npm,pnpm,yarn etc. I guess it would be sufficient to remember the selected tab in localStorage on the client.

@silverwind commented on GitHub (Jul 10, 2025): Or we make a tabbed UI that allows selecting between docker and podman. The problem is not new in itself, for JS package manager there exists a similar situation with npm,pnpm,yarn etc. I guess it would be sufficient to remember the selected tab in localStorage on the client.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14735