/vagrant-docker-registry

A Vagrant instance running a Shipyard and Docker registry container

Primary LanguageShell

Requirements

Setup

Start up a docker registry and Shipyard container.

./environment start

Wait until Shipyard has been deployed. Then run a Shipyard agent container.

./environment run

Login to Shipyard and visit the Hosts page to authorize the agent.

To push to your local repository:

./environment ssh

# Pull down the latest busybox images
docker pull busybox

# Create your own tag
docker tag busybox localhost:5000/busybox:0.1.0

# Push your tagged version
docker push localhost:5000/busybox

# Clean up old images
docker rmi busybox
docker rmi localhost:5000/busybox:0.1.0

# Confirm you can pull down your tagged version
docker pull localhost:5000/busybox

To view all the tags for that image:

curl -X GET http://localhost:5000/v1/repositories/busybox/tags
{"0.1.0": "2d8e5b282c81244037eb15b2068e1c46319c1a42b80493acb128da24b2090739"}

To delete a tag:

curl -X DELETE http://localhost:5000/v1/repositories/busybox/tags/0.1.0

Further Reading