Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryotarai/vagrant-docker-registry
docker-registry with vagrant
https://github.com/ryotarai/vagrant-docker-registry
Last synced: 9 days ago
JSON representation
docker-registry with vagrant
- Host: GitHub
- URL: https://github.com/ryotarai/vagrant-docker-registry
- Owner: ryotarai
- Created: 2015-01-21T07:11:18.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-21T09:28:43.000Z (over 9 years ago)
- Last Synced: 2024-11-07T17:09:06.243Z (about 2 months ago)
- Size: 148 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vagrant-docker-registry
Run docker-registry locally:
```
$ export AWS_ACCESS_KEY_ID="..."
$ export AWS_SECRET_ACCESS_KEY="..."
$ export AWS_REGION="..."
$ export DOCKER_REGISTRY_AWS_BUCKET="..."
$ export DOCKER_REGISTRY_STORAGE_PATH="..."
$ vagrant up
$ vagrant ssh -c 'ip addr | grep inet | grep eth1'
inet 172.28.128.3/24 brd 172.28.128.255 scope global eth1
$ curl 172.28.128.3
"\"docker-registry server\""
```If you use boot2docker:
```
$ boot2docker ssh
docker@boot2docker:~$ echo '172.28.128.3 your-docker-registry' | sudo tee -a /etc/hosts
docker@boot2docker:~$ echo 'EXTRA_ARGS="--insecure-registry your-docker-registry:80"' | sudo tee -a /var/lib/boot2docker/profile
docker@boot2docker:~$ sudo /etc/init.d/docker restart
```You can access your images:
```
$ docker pull your-docker-registry:80/your-repo:latest
```