{"id":20510358,"url":"https://github.com/frobware/docker-registry-mirror","last_synced_at":"2025-03-05T22:31:50.508Z","repository":{"id":66960995,"uuid":"126365719","full_name":"frobware/docker-registry-mirror","owner":"frobware","description":"Working example of a pull-through docker-registry","archived":false,"fork":false,"pushed_at":"2018-03-22T17:04:47.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T07:38:23.605Z","etag":null,"topics":["cache","docker","mirror","registry"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/frobware.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-22T16:40:35.000Z","updated_at":"2018-03-22T17:04:48.000Z","dependencies_parsed_at":"2023-04-22T10:32:13.460Z","dependency_job_id":null,"html_url":"https://github.com/frobware/docker-registry-mirror","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/frobware%2Fdocker-registry-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fdocker-registry-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fdocker-registry-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fdocker-registry-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frobware","download_url":"https://codeload.github.com/frobware/docker-registry-mirror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242114260,"owners_count":20073923,"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":["cache","docker","mirror","registry"],"created_at":"2024-11-15T20:29:11.015Z","updated_at":"2025-03-05T22:31:50.481Z","avatar_url":"https://github.com/frobware.png","language":"Makefile","readme":"# Introduction\n\nEndlessly pulling the same docker images when doing automated testing,\nparticularly in emphemeral VMs, can be sped up using a [pull-through\ndocker registry](https://docs.docker.com/registry/recipes/mirror/).\n\nThis repository just adds a little automation to the existing\ninstructions.\n\n## Install\n\n\tgit clone https://github.com/frobware/docker-registry-mirror\n\tcd docker-registry-mirror\n\n\t# generate self-signed certificates\n\tmake\n\n\t# run the docker registry image with our certificates\n\tmake run\n\n## Configuring docker to use this new pull-through registry\n\nYou need to update docker's configuration to specify that it should\nuse this local registry mirror. Using fedora as an example:\n\n### Add the registry mirror endpoint to /etc/sysconfig/docker\n\n\tOPTIONS='--selinux-enabled --log-driver=journald --registry-mirror=https://spicy.internal.frobware.com:5000'\n\n### And also tell docker that it's OK to trust it:\n\n\tINSECURE_REGISTRY='--insecure-registry spicy.internal.frobware.com:5000'\n\nI use a FQDN here because I refer to this endpoint/mirror in other VMs\nthat are running docker on my local LAN.\n\n### Restart docker:\n\n\tsystemctl restart docker\n\n## Testing\n\nThe first time an image is pulled it will contact the registry mirror,\nfind out it doesn't have that image, then pull in the normal way. The\nsecond time, however, should be a lot quicker as it will come from\nyour local mirror.\n\n\tdocker pull fedora\n\n\tdocker rmi fedora\n\tdocker pull fedora\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrobware%2Fdocker-registry-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrobware%2Fdocker-registry-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrobware%2Fdocker-registry-mirror/lists"}