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
Caching foreign layers #33650
Comments
@thaJeztah Thank you for response, there the problem is discussed, but as I understood there is no working solution |
@dimuskin The feature @thaJeztah mentioned is going to be what you want. This will be in the 17.06 release. |
Can you explain the intended workflow in depth? It is not entirely obvious to me how this feature relates to the standard "registry-mirrors" cache system (if at all) nor what is required to make it all cooperate nice and proper. What is the sequence of actions needed to get from a clean Docker and custom Docker registry install to one where microsoft/windowsservercore is pulled from the custom registry? |
@sandersaares There's documentation coming here: https://github.com/docker/docker.github.io/pull/3485/files#diff-460d63bcfd2c1c08c13d056dfcc10b6aR521 I don't think registry-mirrors will work for this (I don't think so), but @nwt might remember. |
Here are the questions that come to mind.
I will experiment to discover the answers. My ideal scenario is one where there is one Docker install pre-seeding a cache registry with foreign layers, with other Docker installs able to pull from the cache without any special configuration. |
Technically, I found a way to manually upload foreign images directly into the cache (aka. local registry mirror).
Now if you pull microsoft/windowsservercore:10.0.14393.1770, docker will download it from your local mirror repository. |
Could we reopen this? although @dimuskin solution works, is not very usable cc @thaJeztah @friism |
@kassanmoor technically you can use simple python script like that:
|
Hi,
We have small team that develops .NET applications. Often have to install windows docker containers.
Because the size of microsoft/windowsservercore image more than 8GB we decided to install local cache registry to save time to download.
Unfortunately the registry does not cache foreign layers or layers which contains urls parameter in manifest file. (btw, its no problem with any other images)
Example manifest (microsoft/nanoserver/10.0.14393.953):
Is this expected behavior and if so, are there any plans to support caching these items for windows? Is any other way to create cache for this type on images?
Best Regards.
The text was updated successfully, but these errors were encountered: