{"id":19614620,"url":"https://github.com/activestate/static-docker-registry","last_synced_at":"2026-03-02T11:32:58.114Z","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":12,"open_issues_count":0,"forks_count":4,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-10-09T02:42:50.433Z","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":"2024-12-29T09:00:16.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,"purl":"pkg:github/ActiveState/static-docker-registry","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveState%2Fstatic-docker-registry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30000029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T11:09:27.951Z","status":"ssl_error","status_checked_at":"2026-03-02T11:08:53.255Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-11T10:53:07.900Z","updated_at":"2026-03-02T11:32:58.090Z","avatar_url":"https://github.com/ActiveState.png","language":"Go","funding_links":[],"categories":[],"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"}