{"id":13624072,"url":"https://github.com/mafintosh/docker-registry-server","last_synced_at":"2025-07-04T00:34:27.735Z","repository":{"id":18815082,"uuid":"22029801","full_name":"mafintosh/docker-registry-server","owner":"mafintosh","description":"docker registry server in node.js","archived":false,"fork":false,"pushed_at":"2015-03-27T14:15:48.000Z","size":400,"stargazers_count":111,"open_issues_count":2,"forks_count":14,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-07T16:48:47.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mafintosh.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":"2014-07-20T09:12:26.000Z","updated_at":"2025-05-03T09:54:10.000Z","dependencies_parsed_at":"2022-08-20T19:00:52.432Z","dependency_job_id":null,"html_url":"https://github.com/mafintosh/docker-registry-server","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/mafintosh/docker-registry-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fdocker-registry-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fdocker-registry-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fdocker-registry-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fdocker-registry-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mafintosh","download_url":"https://codeload.github.com/mafintosh/docker-registry-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Fdocker-registry-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263426394,"owners_count":23464795,"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-08-01T21:01:38.584Z","updated_at":"2025-07-04T00:34:27.712Z","avatar_url":"https://github.com/mafintosh.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# docker-registry-server\n\nDocker registry implemented in Node.\n\n```\nnpm install -g docker-registry-server\n```\n\nYou can also pull the docker image\n\n```\ndocker pull mafintosh/docker-registry-server\n```\n\n## Usage\n\nTo start it run\n\n```\ndocker-registry-server\n```\n\nCurrently data will be stored in `./layers` and `./db`.\nFor more info run `docker-registry-server --help`\n\n## Authentication\n\nPer default there is no authentication (meaning everyone can push/pull images).\nYou can use the `--user` command line option to limit registry access.\n\n```\ndocker-registry-server --user mafintosh:secret --user another:hunter2\n```\n\n## Hooks\n\nSimilar to a git repository you can specify hooks that are executed when certain events happen.\nCurrently the following hooks are supported\n\n* `tag (id, tag)` Triggered when an image is tagged (happens when you push a tagged image)\n* `image (id)` Triggered when an image metadata is uploaded\n* `layer (id)` Triggered when an image layer is uploaded\n* `verify (id)` Triggered when an image layer+metadata has been verified\n* `index (id)` Triggered when an image file system data has been indexed\n\nThe `tag` hook is especially useful as it allows you to set up a `push-\u003edeploy` flow.\n\nTo add a hook specify it as a command line argument prefixed with `--on-{name} {bash-script}`\n\n```\ndocker-registry-server --on-tag \"echo image \\$1 was tagged with \\$2 - please deploy\"\n```\n\nOr add them in a `./hooks/{name}` file\n\n## APIs\n\nThe registry should support all of the APIs specified in the [docker docs](https://docs.docker.com/reference/api/registry_api/).\nIn addition, the following APIs are available\n\n#### `GET /v1/images/{id}/tree/{directory}`\n\nReturns a JSON array containing the files/folders in `{directory}` in the image `{id}`.\nFx if you have an image, `4a21b50675ba611ab0e9236c4f9430348d932ea3bf6e9b2af86b47eca9088320` and you want to list\nthe files in `/root` do\n\n```\ncurl localhost:8000/v1/images/4a21b50675ba611ab0e9236c4f9430348d932ea3bf6e9b2af86b47eca9088320/tree/root\n```\n\n#### `GET /v1/images/{id}/blobs/{filename}`\n\nGet the file content of `{filename}` in the image `{id}`.\nFx if you have the same image as above and want to read `/root/package.json` do\n\n```\ncurl localhost:8000/v1/images/4a21b50675ba611ab0e9236c4f9430348d932ea3bf6e9b2af86b47eca9088320/tree/root/package.json\n```\n\n#### `GET /v1/events`\n\nGet a newline delimited JSON stream on events from the registry. Use `type={name}` to limit the events you get.\n\n```\ncurl localhost:8000/v1/events?type=tag\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fdocker-registry-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmafintosh%2Fdocker-registry-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Fdocker-registry-server/lists"}