dmr: docker model package (#22663)

<!--Delete sections as needed -->

## Description

Add `docker model package`

<!-- Tell us what you did and why -->

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [X] Technical review
- [X] Editorial review
- [ ] Product review
This commit is contained in:
Arthur 2025-05-19 15:46:10 +02:00 committed by GitHub
parent 91eaa59ab8
commit 6be55cd0d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 25 additions and 11 deletions

View File

@ -15,15 +15,16 @@ Citrix
CloudFront
Codefresh
Codespaces
CouchDB
Couchbase
CouchDB
Datadog
Ddosify
Debootstrap
Dev
Dex
Dev Environments?
Dex
Django
DMR
Docker Build Cloud
Docker Business
Docker Dasboard
@ -33,8 +34,8 @@ Docker Extension
Docker Hub
Docker Scout
Docker Team
Docker's
Docker-Sponsored Open Source
Docker's
Dockerfile
Dockerize
Dockerizing
@ -44,26 +45,27 @@ Fargate
Fedora
Flink
GeoNetwork
GGUF
Git
GitHub( Actions)?
Google
Grafana
Gravatar
HyperKit
IPv[46]
IPvlan
Intel
Intune
JFrog
IPv[46]
IPvlan
Jamf
JetBrains
JFrog
JUnit
Kerberos
Kitematic
Kubeadm
Kubernetes
Laravel
Laradock
Laravel
Linux
LinuxKit
Logstash
@ -71,27 +73,27 @@ Mac
Mail(chimp|gun)
Microsoft
MySQL
NFSv\d
Netplan
NFSv\d
Nginx
Nutanix
Nuxeo
OAuth
Okta
Ollama
OTel
Okta
PKG
Paketo
PKG
Postgres
PowerShell
Python
Ryuk
S3
SQLite
Slack
Snyk
Solr
SonarQube
SQLite
Syft
Sysbox
Sysdig

View File

@ -215,6 +215,18 @@ Output:
Model <model> removed successfully
```
### Package a model
Packages a GGUF file into a Docker model OCI artifact, with optional licenses, and pushes it to the specified registry.
```console
$ docker model package \
--gguf ./model.gguf \
--licenses license1.txt \
--licenses license2.txt \
--push registry.example.com/ai/custom-model
```
## Integrate the Docker Model Runner into your software development lifecycle
You can now start building your Generative AI application powered by the Docker Model Runner.