docker / roadmap

Welcome to the Public Roadmap for All Things Docker! We welcome your ideas.
https://github.com/orgs/docker/projects/51
Creative Commons Zero v1.0 Universal
1.74k stars 260 forks source link

OCI Volume Source #718

Open sudo-bmitch opened 1 month ago

sudo-bmitch commented 1 month ago

Tell us about your request KEP 4639 has been getting a lot of attention on the Kubernetes side. It would be good if similar functionality was also available in docker, allowing an OCI Image to be used as a volume source.

Which service(s) is this request for? docker engine and compose.

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? Use cases for the KEP tend to focus on ML use cases, where a large model is being distributed in a scratch image, and used by different ML implementations, packaged in separate container images.

Are you currently working around the issue? Today, it's possible to download and flatten an image into a host directory or volume and run against that. Tooling could probably be improved to facilitate that if Docker doesn't want to implement this directly in the engine.

Additional context n/a

tianon commented 1 month ago

Cross-linking https://github.com/moby/moby/issues/30449 and https://github.com/moby/buildkit/blob/7e4a085eeab3966a471c685d790838f45ac865e9/frontend/dockerfile/docs/reference.md#run---mounttypebind (specifically RUN --mount=type=bind,from=...) :eyes: