{"id":20470671,"url":"https://github.com/devops-ws/containerd-guide","last_synced_at":"2026-03-08T02:01:44.998Z","repository":{"id":133664327,"uuid":"590757518","full_name":"devops-ws/containerd-guide","owner":"devops-ws","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-31T05:13:59.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-09T13:51:17.948Z","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-01-19T06:02:23.000Z","updated_at":"2023-01-19T06:02:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b8505ea-ec6b-4690-8947-4066259b1b66","html_url":"https://github.com/devops-ws/containerd-guide","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devops-ws/containerd-guide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fcontainerd-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fcontainerd-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fcontainerd-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fcontainerd-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devops-ws","download_url":"https://codeload.github.com/devops-ws/containerd-guide/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-ws%2Fcontainerd-guide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30242403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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:44.194Z","updated_at":"2026-03-08T02:01:44.990Z","avatar_url":"https://github.com/devops-ws.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# containerd-guide\n\n## 安装\n```shell\nhd i containerd\nhd i containernetworking/plugins\n```\n\n[配置文件](https://github.com/containerd/containerd/blob/main/docs/man/containerd-config.toml.5.md)：`/etc/containerd/config.tom`\n\n## 启动\n```shell\ncontainerd\n```\n\n## 拉取镜像\n```shell\ncrictl pull alpine \n```\n\n## 设置镜像\n下面的配置文件将多个 Registry 映射到了本地部署的 Harbor 上：\n\n* docker.io -\u003e harbor/cache\n* quay.io -\u003e habor/quay.io\n* ghcr.io -\u003e harbor/ghcr.io\n\n```toml\n# vim /etc/containerd/config.toml\nversion = 2\n\n[plugins.\"io.containerd.grpc.v1.cri\".registry]\n  [plugins.\"io.containerd.grpc.v1.cri\".registry.mirrors]\n    [plugins.\"io.containerd.grpc.v1.cri\".registry.mirrors.\"10.121.218.184:30002\"]\n      endpoint = [\"http://10.121.218.184:30002\"]\n    [plugins.\"io.containerd.grpc.v1.cri\".registry.mirrors.\"docker.io\"]\n      endpoint = [\"http://10.121.218.184:30002/v2/cache\", \"https://qtzsrp4m.mirror.aliyuncs.com/v2\"]\n    [plugins.\"io.containerd.grpc.v1.cri\".registry.mirrors.\"quay.io\"]\n      endpoint = [\"http://10.121.218.184:30002/v2/quay.io\"]\n    [plugins.\"io.containerd.grpc.v1.cri\".registry.mirrors.\"ghcr.io\"]\n      endpoint = [\"http://10.121.218.184:30002/v2/ghcr.io\"]\n    [plugins.\"io.containerd.grpc.v1.cri\".registry.mirrors.\"k8s.gcr.io\"]\n      endpoint = [\"https://registry.k8s.io/v2\"]\n\n[plugins.\"io.containerd.grpc.v1.cri\".registry.configs.\"10.121.218.184:30002\".tls]\n  insecure_skip_verify = true\n\n[plugins.\"io.containerd.grpc.v1.cri\".registry.configs]\n  [plugins.\"io.containerd.grpc.v1.cri\".registry.configs.\"10.121.218.184:30002\".auth]\n    username = \"robot_readonly\"\n    password = 'npcCnfZicoeZTupZnX39ew9cfIvldyZV'\n```\n\n## 镜像推送\n```shell\nctr image pull registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:v1.8.0 --all-platforms\nctr image tag registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:v1.8.0 10.121.218.184:30002/registry.k8s.io/coredns:v1.8.0\nctr image push 10.121.218.184:30002/registry.k8s.io/coredns:v1.8.0 --plain-http --user user:pass\n```\n\n## Troubleshotting\n```\ncat \u003c\u003cEOF \u003e/etc/crictl.yaml\nruntime-endpoint: unix:///run/containerd/containerd.sock\nimage-endpoint: unix:///run/containerd/containerd.sock\ntimeout: 2\ndebug: true\npull-image-on-create: false\nEOF\n```\n\n## 树莓派\n```shell\nhd install runc --arch armhf\nhd i containernetworking/plugins\nhd i k9s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-ws%2Fcontainerd-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevops-ws%2Fcontainerd-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-ws%2Fcontainerd-guide/lists"}