{"id":28539414,"url":"https://github.com/yourtion/ydocker","last_synced_at":"2025-07-08T10:30:57.395Z","repository":{"id":57709925,"uuid":"320726623","full_name":"yourtion/ydocker","owner":"yourtion","description":"《自己动手写Docker》实践与总结","archived":false,"fork":false,"pushed_at":"2020-12-27T02:09:06.000Z","size":87,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T18:49:21.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/yourtion.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":"2020-12-12T01:57:58.000Z","updated_at":"2024-09-06T06:32:34.000Z","dependencies_parsed_at":"2022-09-26T21:21:23.854Z","dependency_job_id":null,"html_url":"https://github.com/yourtion/ydocker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yourtion/ydocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fydocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fydocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fydocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fydocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yourtion","download_url":"https://codeload.github.com/yourtion/ydocker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fydocker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264250180,"owners_count":23579477,"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-06-09T18:31:46.914Z","updated_at":"2025-07-08T10:30:57.390Z","avatar_url":"https://github.com/yourtion.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ydocker\n\n《自己动手写Docker》实践与总结，针对代码功能与结构进行调整与优化，同时添加相应的注释与测试代码。\n\n## 使用\n\n### 构建\n\n```shell\n$ go build\n```\n\n### 运行\n\n```shell\n$ ./ydocker run -ti busybox sh\n$ ./ydocker network create --subnet 10.0.1.0/24 --driver bridge test_bridge\n$ ./ydocker network list\n$ ./ydocker network remove test_bridge\n$ ./ydocker run -ti -p 8080:8080 -net test_bridge --name demo busybox top\n$ ./ydocker stop demo\n$ ./ydocker rm demo\n```\n\n### 测试\n\n```shell\n$ sh run_test.sh\n$ sh run_test_network.sh\n```\n\n## TODO\n\n- [ ] volume 参数支持多个\n- [ ] 支持自定义运行路径（当前为`/root`）\n- [ ] 数据文件存取加锁\n- [ ] 清理 iptables 中的 portMapping 配置\n- [ ] 检测已经存在的 port 冲突\n- [ ] 实现 image 相关功能\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourtion%2Fydocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyourtion%2Fydocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourtion%2Fydocker/lists"}