2015-06-08 00:58:53 +00:00
<!-- [metadata]>
+++
2016-05-19 12:52:58 +00:00
title = "Registry Overview"
2015-08-26 18:08:13 +00:00
description = "High-level overview of the Registry"
keywords = ["registry, on-prem, images, tags, repository, distribution"]
2016-05-19 12:52:58 +00:00
aliases = ["/registry/overview/"]
2015-06-08 00:58:53 +00:00
[menu.main]
2016-05-19 12:52:58 +00:00
parent="smn_registry"
2016-05-31 17:19:47 +00:00
weight=1
2015-06-08 00:58:53 +00:00
+++
<![end-metadata]-->
2015-05-13 07:32:14 +00:00
# Docker Registry
2015-03-03 07:33:02 +00:00
2015-05-22 09:17:23 +00:00
## What it is
2015-04-02 15:11:19 +00:00
2015-05-22 09:17:23 +00:00
The Registry is a stateless, highly scalable server side application that stores and lets you distribute Docker images.
The Registry is open-source, under the permissive [Apache license ](http://en.wikipedia.org/wiki/Apache_License ).
2015-04-02 15:11:19 +00:00
2015-05-22 09:17:23 +00:00
## Why use it
2015-04-02 15:11:19 +00:00
2015-05-22 09:17:23 +00:00
You should use the Registry if you want to:
2015-04-02 15:11:19 +00:00
2015-05-22 09:17:23 +00:00
* tightly control where your images are being stored
* fully own your images distribution pipeline
2015-06-12 08:10:03 +00:00
* integrate image storage and distribution tightly into your in-house development workflow
2015-04-02 15:11:19 +00:00
2015-05-22 09:17:23 +00:00
## Alternatives
2015-04-16 00:23:40 +00:00
2015-05-22 09:17:23 +00:00
Users looking for a zero maintenance, ready-to-go solution are encouraged to head-over to the [Docker Hub ](https://hub.docker.com ), which provides a free-to-use, hosted Registry, plus additional features (organization accounts, automated builds, and more).
2015-04-02 15:11:19 +00:00
2016-06-02 18:22:02 +00:00
Users looking for a commercially supported version of the Registry should look into [Docker Trusted Registry ](https://docs.docker.com/docker-trusted-registry/overview/ ).
2015-04-02 15:11:19 +00:00
2015-05-22 09:17:23 +00:00
## Requirements
2015-04-16 00:23:40 +00:00
2015-06-01 03:08:28 +00:00
The Registry is compatible with Docker engine **version 1.6.0 or higher** .
2015-08-26 18:08:13 +00:00
If you really need to work with older Docker versions, you should look into the [old python registry ](https://github.com/docker/docker-registry ).
2015-04-16 00:23:40 +00:00
2015-05-22 09:17:23 +00:00
## TL;DR
2015-04-16 00:23:40 +00:00
2015-06-12 08:10:03 +00:00
Start your registry
docker run -d -p 5000:5000 --name registry registry:2
Pull (or build) some image from the hub
docker pull ubuntu
Tag the image so that it points to your registry
2015-04-16 00:23:40 +00:00
2015-06-12 08:10:03 +00:00
docker tag ubuntu localhost:5000/myfirstimage
2015-04-16 00:23:40 +00:00
2015-06-12 08:10:03 +00:00
Push it
2015-04-16 00:23:40 +00:00
2015-06-12 08:10:03 +00:00
docker push localhost:5000/myfirstimage
2015-04-16 00:23:40 +00:00
2015-06-12 08:10:03 +00:00
Pull it back
2015-04-16 00:23:40 +00:00
2015-06-12 08:10:03 +00:00
docker pull localhost:5000/myfirstimage
2015-05-13 07:32:14 +00:00
2015-06-12 08:10:03 +00:00
Now stop your registry and remove all data
2015-05-13 07:32:14 +00:00
2015-06-12 08:10:03 +00:00
docker stop registry & & docker rm -v registry
2015-05-22 09:17:23 +00:00
2015-06-12 08:10:03 +00:00
## Next
2015-05-22 09:17:23 +00:00
2015-06-12 08:10:03 +00:00
You should now read the [detailed introduction about the registry ](introduction.md ), or jump directly to [deployment instructions ](deploying.md ).