[GH-ISSUE #2745] Ability to pull/push models from/to OCI registries #48164

Closed
opened 2026-04-28 06:56:57 -05:00 by GiteaMirror · 8 comments
Owner

Originally created by @raffaelespazzoli on GitHub (Feb 25, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2745

if we wish ollama to be adopted in traditional enterprises, it should be possible to pull/push models from/to private model registries.
I am not sure if there is a standard for model registries, but the OCI container registry spec[1] can be adapted to manage any type of content and OCI registries are readily available in enterprises.
It seems to make sense then to enhance ollama to be able to pull and push from/to OCI registries.
I'd like to know what the feedback from the community is on this idea. If positive, I'd be happy to try to contribute this feature.

[1] OCI distribution specification to be precise: https://github.com/opencontainers/distribution-spec

Originally created by @raffaelespazzoli on GitHub (Feb 25, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2745 if we wish ollama to be adopted in traditional enterprises, it should be possible to pull/push models from/to private model registries. I am not sure if there is a standard for model registries, but the OCI container registry spec[1] can be adapted to manage any type of content and OCI registries are readily available in enterprises. It seems to make sense then to enhance ollama to be able to pull and push from/to OCI registries. I'd like to know what the feedback from the community is on this idea. If positive, I'd be happy to try to contribute this feature. [1] OCI distribution specification to be precise: https://github.com/opencontainers/distribution-spec
Author
Owner

@mofanke commented on GitHub (Feb 26, 2024):

It will work for private OCI container registry, I've tried it, and it does work.

<!-- gh-comment-id:1963346762 --> @mofanke commented on GitHub (Feb 26, 2024): It will work for private OCI container registry, I've tried it, and it does work.
Author
Owner

@raffaelespazzoli commented on GitHub (Feb 27, 2024):

how do you do pull from a registry? I didn't find the option.

<!-- gh-comment-id:1966353205 --> @raffaelespazzoli commented on GitHub (Feb 27, 2024): how do you do pull from a registry? I didn't find the option.
Author
Owner

@pdevine commented on GitHub (Mar 1, 2024):

You can use Ollama with an OCI registry right now as long as you don't need auth.

To pull from a different registry you can use: ollama pull <host>/<namespace>/<repo>:<tag>

I'm going to go ahead and close the issue, but feel free to keep commenting.

<!-- gh-comment-id:1972323644 --> @pdevine commented on GitHub (Mar 1, 2024): You can use Ollama with an OCI registry right now as long as you don't need auth. To pull from a different registry you can use: `ollama pull <host>/<namespace>/<repo>:<tag>` I'm going to go ahead and close the issue, but feel free to keep commenting.
Author
Owner

@raffaelespazzoli commented on GitHub (Mar 1, 2024):

ok, wonderful. I didn't find that in the docs. Should we work on supporting authenticated repos?

<!-- gh-comment-id:1973109639 --> @raffaelespazzoli commented on GitHub (Mar 1, 2024): ok, wonderful. I didn't find that in the docs. Should we work on supporting authenticated repos?
Author
Owner

@ericcurtin commented on GitHub (Jan 19, 2025):

We will be enabling the functionality to push and pull models to OCI registries in RamaLama pending completion of the new "podman artifact" command:

https://github.com/containers/ramalama

<!-- gh-comment-id:2600975350 --> @ericcurtin commented on GitHub (Jan 19, 2025): We will be enabling the functionality to push and pull models to OCI registries in RamaLama pending completion of the new "podman artifact" command: https://github.com/containers/ramalama
Author
Owner

@bupd commented on GitHub (Feb 19, 2025):

Currently this is not fixed.

<!-- gh-comment-id:2667976926 --> @bupd commented on GitHub (Feb 19, 2025): Currently this is not fixed.
Author
Owner

@raja-anbazhagan commented on GitHub (Jun 5, 2025):

Also there is no way right now to push to jfrog registry protected by password.

<!-- gh-comment-id:2943652825 --> @raja-anbazhagan commented on GitHub (Jun 5, 2025): Also there is no way right now to push to jfrog registry protected by password.
Author
Owner

@ericcurtin commented on GitHub (Jun 5, 2025):

@raja-anbazhagan work with us on RamaLama https://github.com/containers/ramalama , it's an explicit goal of the project

<!-- gh-comment-id:2944212783 --> @ericcurtin commented on GitHub (Jun 5, 2025): @raja-anbazhagan work with us on RamaLama https://github.com/containers/ramalama , it's an explicit goal of the project
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#48164