{"id":24517456,"url":"https://github.com/futuretea/docker-local-mirror","last_synced_at":"2025-03-15T11:10:03.982Z","repository":{"id":159125922,"uuid":"631811637","full_name":"futuretea/docker-local-mirror","owner":"futuretea","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-30T06:20:14.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T01:36:33.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/futuretea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-24T05:38:59.000Z","updated_at":"2023-04-30T06:20:18.000Z","dependencies_parsed_at":"2023-05-17T19:15:44.501Z","dependency_job_id":null,"html_url":"https://github.com/futuretea/docker-local-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/futuretea%2Fdocker-local-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuretea%2Fdocker-local-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuretea%2Fdocker-local-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuretea%2Fdocker-local-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/futuretea","download_url":"https://codeload.github.com/futuretea/docker-local-mirror/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719399,"owners_count":20336607,"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":"2025-01-22T01:34:05.770Z","updated_at":"2025-03-15T11:10:03.975Z","avatar_url":"https://github.com/futuretea.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-local-mirror\n\n## Requirements\n- `regctl` from https://github.com/regclient/regclient/releases\n- `fd` from https://github.com/sharkdp/fd/releases\n\n## How to use\n\n### Server\n1. Prepare a directory for storing the mirror data\n\n```bash\nsudo mkdir -p /data/dockerhub\nsudo chown -R ${USER} /data/dockerhub\n```\n\n2. Run the docker-compose\n\n```bash\ncd dockerhub\ndocker-compose up -d\n```\n\n### Client\n```bash\nvim /etc/docker/daemon.json\n```\n\n```json\n{\n   \"registry-mirrors\":[\n        \"http://\u003creplace to the server ip\u003e:5000\"\n    ],\n    \"insecure-registries\":[\n        \"http://\u003creplace to the server ip\u003e:5100\"\n    ],\n    \"max-concurrent-downloads\": 10,\n    \"log-driver\": \"json-file\",\n    \"log-level\": \"warn\",\n    \"log-opts\": {\n        \"max-size\": \"10m\",\n        \"max-file\": \"3\"\n    },\n      \"features\": {\n        \"buildkit\": true\n    }\n}\n\n```\n\n### Clean head images daily\n\n```bash\ncrontab -e\n```\n\nAdd the following cron job\n```cron\n0 0 * * * /your-path-to-this-repo/docker-local-mirror/dockerhub/clean.sh head\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturetea%2Fdocker-local-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuturetea%2Fdocker-local-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturetea%2Fdocker-local-mirror/lists"}