https://github.com/hopsoft/private-docker-registry
A project to help you build a private docker registry image.
https://github.com/hopsoft/private-docker-registry
Last synced: 20 days ago
JSON representation
A project to help you build a private docker registry image.
- Host: GitHub
- URL: https://github.com/hopsoft/private-docker-registry
- Owner: hopsoft
- License: mit
- Created: 2013-10-02T23:28:02.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-29T22:51:57.000Z (over 11 years ago)
- Last Synced: 2025-01-01T09:10:17.285Z (9 months ago)
- Language: Shell
- Size: 226 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Your Own Private Docker Registry
## Use the Trusted Image
**Important:** When using S3,
be sure to set the `boto_bucket` config value to your S3 bucket name;
otherwise, the Django application won't start.```
sudo docker run -i -t -p 5000:5000 hopsoft/docker-registry bash# update the config
vim /opt/docker-registry/config/config.yml# run the registry
/opt/hopsoft/docker-registry/start &# detach
```
## Use the Registry
### Create an Image
```
docker pull ubuntu
docker tag ubuntu localhost:5000/ubuntu
docker push localhost:5000/ubuntu
```### Interact with the private registry via the API
```
curl http://localhost:5000/v1/repositories/ubuntu/images
curl http://localhost:5000/v1/images/8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c/json
curl http://localhost:5000/v1/repositories/ubuntu/tags
curl -X DELETE http://localhost:5000/v1/repositories/ubuntu
```Read more about the API [here](http://docs.docker.io/en/latest/api/registry_index_spec/).
## Build the Image Manually
#### Dependencies
* [Virtual Box](https://www.virtualbox.org/)
* [Vagrant](http://www.vagrantup.com/)```
git clone git@github.com:hopsoft/private-docker-registry.git
cd private-docker-registry
vagrant up
vagrant ssh
sudo docker build -t hopsoft/docker-registry /vagrant
```