Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose docker caching from host to the VM #88

Open
amiller opened this issue Jan 3, 2025 · 1 comment
Open

expose docker caching from host to the VM #88

amiller opened this issue Jan 3, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@amiller
Copy link

amiller commented Jan 3, 2025

It's too bad starting a dstack guest vm instance is so slow, even when the application containers mostly consist of frequently-reused containers. It would be great if the guest could use the host as an (untrusted) local cache.

Here's relevant docs on how to configure container drivers (should be applicable to podman) registries to point elsewhere (i.e. to a service on the host)
https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md#remapping-and-mirroring-registries

excuse the brief design issue :]

@amiller amiller added the enhancement New feature or request label Jan 3, 2025
@kvinwang
Copy link
Collaborator

kvinwang commented Jan 6, 2025

Docker seems to not support /etc/containers/registries.conf.
Teepod already supports configuring mirror registry here:

docker_registry = ""

The local cache can be set up according to the official doc
However, only official docker hub registry is supported for mirroring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants