{"id":13686825,"url":"https://github.com/ActiveState/static-docker-registry","last_synced_at":"2025-05-01T12:31:21.589Z","repository":{"id":15684097,"uuid":"18421760","full_name":"ActiveState/static-docker-registry","owner":"ActiveState","description":"Experiments in making 'docker pull' reliable","archived":false,"fork":false,"pushed_at":"2014-04-04T19:03:53.000Z","size":208,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":52,"default_branch":"master","last_synced_at":"2024-11-11T10:53:34.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ActiveState.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-03T23:40:32.000Z","updated_at":"2021-05-08T12:49:40.000Z","dependencies_parsed_at":"2022-09-24T03:33:57.832Z","dependency_job_id":null,"html_url":"https://github.com/ActiveState/static-docker-registry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveState%2Fstatic-docker-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveState%2Fstatic-docker-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveState%2Fstatic-docker-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveState%2Fstatic-docker-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ActiveState","download_url":"https://codeload.github.com/ActiveState/static-docker-registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224257226,"owners_count":17281671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T15:00:41.176Z","updated_at":"2024-11-12T10:30:14.185Z","avatar_url":"https://github.com/ActiveState.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"static-docker-registry\n======================\n\nThis is a demonstration of making 'docker pull' more reliable.\n\nPull is made realible by having it fetch the image layers (and metadata) *directly* \nfrom the CDN instead of having to go throughly the comparably unreliable registry \nmiddleman.\n\n![](diagram.png)\n\nIn order to achieve this, we need four things:\n\n1. [patch docker](https://github.com/dotcloud/docker/pull/4607) to make it ignore the \n   special X-* http headers if not present, even though it is not strictly required if \n   we add the headers to the endpoint app (see point 3).\n\n2. [patch\n   docker-registry](https://github.com/ActiveState/docker-registry/compare/static-registry)\n   to store 'tags' and 'images' files under each repositority. this allows the\n   docker client to directly request /tags and /images from the CDN. the /tags\n   file in particular is required as it is not possible to enumerate the /tag_*\n   files from the registry store. the patched version is available as a docker image -\n   `docker pull srid/static-docker-registry`\n\n3. the [endpoint web\n   app](https://github.com/ActiveState/static-docker-registry/blob/master/endpoint) - a simple\n   redirecting http proxy server that redirects on incoming requests to the CDN.\n\n4. A distributed and reliable data store like openstack swift (or amazon s3) for use as the\n   storage backend in docker-registry. the data files must be made publicly available via http \n   for use in the endpoint app.\n\nNow what happens when you one runs 'docker pull' is:\n\n* /v1/_ping is requested, and endpoint returns a 200 response\n\n* docker proceeds to fetch metadata and layers\n\n* for every request therein, the endpoint will respond with a http redirect to\n  the corresponding CDN file.\n\n* docker respects the redirect response, and fetches from the CDN.\n\nAs a result, 'docker pull' is made more reliable as it doesn't rely on a\nregistry middleman at all. The endpoint app is still useful as a federation\nserver so that \"docker pull \u003cmyendpoint.com\u003e/foo/myimg\" knows where to go to\nget the images from.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FActiveState%2Fstatic-docker-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FActiveState%2Fstatic-docker-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FActiveState%2Fstatic-docker-registry/lists"}