{"id":15653156,"url":"https://github.com/code-hex/container-registry","last_synced_at":"2025-04-30T21:23:09.207Z","repository":{"id":56603872,"uuid":"302052908","full_name":"Code-Hex/container-registry","owner":"Code-Hex","description":"container-registry","archived":false,"fork":false,"pushed_at":"2020-10-29T09:15:59.000Z","size":113,"stargazers_count":29,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T20:04:21.653Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Code-Hex.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}},"created_at":"2020-10-07T13:56:01.000Z","updated_at":"2024-08-03T23:41:11.000Z","dependencies_parsed_at":"2022-08-15T21:50:13.364Z","dependency_job_id":null,"html_url":"https://github.com/Code-Hex/container-registry","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/Code-Hex%2Fcontainer-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fcontainer-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fcontainer-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fcontainer-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Code-Hex","download_url":"https://codeload.github.com/Code-Hex/container-registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251783531,"owners_count":21643127,"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":"2024-10-03T12:44:50.549Z","updated_at":"2025-04-30T21:23:09.189Z","avatar_url":"https://github.com/Code-Hex.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Container Registry\n\n![test](https://github.com/Code-Hex/container-registry/workflows/test/badge.svg) ![e2e test](https://github.com/Code-Hex/container-registry/workflows/e2e%20test/badge.svg) ![OCI Conformance Tests](https://github.com/Code-Hex/container-registry/workflows/OCI%20Conformance%20Tests/badge.svg)\n\nThe Container Registry is implemented using the file system.\n\n- ✅ Implemented of the [OCI Distribution Spec](https://github.com/opencontainers/distribution-spec/blob/master/spec.md)\n  - [x] Pull\n  - [x] Push\n  - [x] Content Discovery\n  - [x] Content Management\n- ✅ Supported Docker Client\n\n## Why developed?\n\nI have developed this container registry for learning purposes. And the reason why I implemented this using the file system because I thought it would be easier to understand how images are stored and what kind of files are stored.\n\n⚠ BTW, I do not recommend that you run this application in production.\n\n## How to try this on your localhost\n\nNeed to fix `/etc/hosts` like below.\n\n```\n...\n\n# Added by manually\n127.0.0.1 container-registry\n# End of section\n```\n\n\n- Build binary - `make build`\n- Run Container Registry - `./bin/registry`\n\nIf you want to clean up in `testdata` directry, let's use `make clean`.\n\n### Push\n\n1. Pull any images to push - `docker pull registry:2`\n2. Tag to push - `docker tag $(docker images --format '{{.ID}}' --filter=reference='registry') container-registry:5080/registry:latest`\n3. Try push - `docker push container-registry:5080/registry:latest`\n\n## Pull\n\nTry pull if you have completed push steps\n\n```sh\n$ docker pull container-registry:5080/registry:latest\n```\n\n## debug\n\n### docker daemon\n\n**MacOS**\n\n```\n$ tail -f ~/Library/Containers/com.docker.docker/Data/log/vm/dockerd.log\n```\n\n## References\n\n- [Container image registry - Build Containers the Hard Way (WIP)](https://containers.gitbook.io/build-containers-the-hard-way/#container-image-registry)\n- [Open Container Initiative Distribution Specification](https://github.com/opencontainers/distribution-spec/blob/master/spec.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fcontainer-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-hex%2Fcontainer-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fcontainer-registry/lists"}