{"id":20470642,"url":"https://github.com/devops-ws/docker-guide","last_synced_at":"2026-03-19T16:02:06.223Z","repository":{"id":133664638,"uuid":"606679899","full_name":"devops-ws/docker-guide","owner":"devops-ws","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-18T02:12:12.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T15:46:14.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jenkins-zh.cn","language":null,"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/devops-ws.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-26T08:17:56.000Z","updated_at":"2023-06-19T05:56:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"6bf349cc-ff20-4eb4-8863-275b3dd7cbb2","html_url":"https://github.com/devops-ws/docker-guide","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devops-ws/docker-guide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fdocker-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fdocker-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fdocker-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fdocker-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devops-ws","download_url":"https://codeload.github.com/devops-ws/docker-guide/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fdocker-guide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29682749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T13:29:26.630Z","status":"ssl_error","status_checked_at":"2026-02-21T13:26:50.125Z","response_time":107,"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-15T14:13:38.048Z","updated_at":"2026-02-21T14:03:51.399Z","avatar_url":"https://github.com/devops-ws.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-guide\n\n```json\n{\n  \"insecure-registries\": [\n    \"182.92.214.141:8082\",\n  ],\n  \"registry-mirrors\":[\n    \"https://docker.m.daocloud.io\"\n  ],\n  \"data-root\": \"/path/to/your/new/docker/root\"\n  \"max-concurrent-downloads\": 20,\n  \"max-concurrent-uploads\": 20\n}\n```\n\nThe following command could serve the image registry from Harbor data:\n```shell\ndocker run -p 5000:5000 -v /var/data/kubelet/pods/2950ab28-cf9e-4771-9973-6aa0083393a3/volumes/kubernetes.io~local-volume/pvc-85a6e412-f3bf-468d-8296-68292393d3f9:/var/lib/registry --name registry registry:2\n```\n\nSee also https://github.com/LinuxSuRen/container-assistant\n\n## ARG\nPlease attention the scope of `ARG`.\n\n```dockerfile\nARG REGISTRY=172.11.0.6:30002/\nFROM ${REGISTRY}docker.io/linuxsuren/antfu-ni:master as builder\n\nARG PLATFORM=changeke\nWORKDIR /workspace\nCOPY . .\nRUN ni\nRUN nr server_build ${PLATFORM}\n```\n\n## As Proxy\nWe could start an registry server as any kind of container registry, such as: ghcr.io\n\nFirst, get the default config of registry:\n```shell\ndocker run registry cat /etc/docker/registry/config.yml \u003e config.yml\n```\n\nthen, put the following part into it:\n```yaml\nproxy:\n  remoteurl: https://ghcr.io\n```\n\nthen, start the server as the following command:\n```shell\ndocker run -v /root/.config/docker:/etc/docker/registry \\\n  -v /var/lib/registry:/var/lib/registry --restart always -d \\\n  --network host registry\n```\n\nfinally, you use use this mirror after updating the Docker daemon:\n```json\n# find file from /etc/docker/daemon.json\n{\n  \"registry-mirrors\":[\"http://10.121.218.184:5000\"],\n  \"insecure-registries\": [\"http://10.121.218.184:5000\"]\n}\n```\n\nSee also the following references:\n\n* https://docs.docker.com/registry/recipes/mirror/\n* https://github.com/distribution/distribution\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-ws%2Fdocker-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevops-ws%2Fdocker-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-ws%2Fdocker-guide/lists"}