2016-09-29 21:21:06 +02:00
|
|
|
---
|
2016-11-10 20:54:25 +01:00
|
|
|
description: High-level overview of the Registry
|
|
|
|
keywords: registry, on-prem, images, tags, repository, distribution
|
2016-11-05 01:06:47 +01:00
|
|
|
redirect_from:
|
2016-09-29 21:21:06 +02:00
|
|
|
- /registry/overview/
|
2016-11-04 23:38:40 +01:00
|
|
|
title: Docker Registry
|
2016-09-29 21:21:06 +02:00
|
|
|
---
|
2016-09-28 23:46:28 +02:00
|
|
|
|
2017-12-08 23:34:57 +01:00
|
|
|
> Looking for Docker Trusted Registry?
|
|
|
|
>
|
|
|
|
> Docker Trusted Registry (DTR) is a commercial product that enables complete
|
|
|
|
> image management workflow, featuring LDAP integration, image signing,
|
|
|
|
> security scanning, and integration with Universal Control Plane. DTR is
|
|
|
|
> offered as an add-on to Docker Enterprise subscriptions of Standard or
|
|
|
|
> higher.
|
|
|
|
>
|
2018-04-19 00:54:50 +02:00
|
|
|
> [Go to Docker Trusted Registry](/ee/dtr/){: class="button outline-btn" }
|
2017-12-08 23:34:57 +01:00
|
|
|
|
2016-09-28 23:46:28 +02:00
|
|
|
## What it is
|
|
|
|
|
2016-11-04 23:38:40 +01: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).
|
2016-09-28 23:46:28 +02:00
|
|
|
|
|
|
|
## Why use it
|
|
|
|
|
|
|
|
You should use the Registry if you want to:
|
|
|
|
|
|
|
|
* tightly control where your images are being stored
|
|
|
|
* fully own your images distribution pipeline
|
|
|
|
* integrate image storage and distribution tightly into your in-house development workflow
|
|
|
|
|
|
|
|
## Alternatives
|
|
|
|
|
2016-11-04 23:38:40 +01: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).
|
2016-09-28 23:46:28 +02:00
|
|
|
|
2016-11-04 23:38:40 +01:00
|
|
|
Users looking for a commercially supported version of the Registry should look
|
2017-01-13 00:37:07 +01:00
|
|
|
into [Docker Trusted Registry](/datacenter/dtr/2.1/guides/index.md).
|
2016-09-28 23:46:28 +02:00
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
2017-08-04 20:12:02 +02:00
|
|
|
The Registry is compatible with Docker engine **version 1.6.0 or higher**.
|
2016-09-28 23:46:28 +02:00
|
|
|
|
2017-12-08 23:34:57 +01:00
|
|
|
## Basic commands
|
2016-09-28 23:46:28 +02: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
|
|
|
|
|
2018-02-05 18:33:47 +01:00
|
|
|
docker image tag ubuntu localhost:5000/myfirstimage
|
2016-09-28 23:46:28 +02:00
|
|
|
|
|
|
|
Push it
|
|
|
|
|
|
|
|
docker push localhost:5000/myfirstimage
|
|
|
|
|
|
|
|
Pull it back
|
|
|
|
|
|
|
|
docker pull localhost:5000/myfirstimage
|
|
|
|
|
|
|
|
Now stop your registry and remove all data
|
|
|
|
|
2018-02-05 18:33:47 +01:00
|
|
|
docker container stop registry && docker container rm -v registry
|
2016-09-28 23:46:28 +02:00
|
|
|
|
|
|
|
## Next
|
|
|
|
|
2016-11-04 23:38:40 +01:00
|
|
|
You should now read the [detailed introduction about the
|
|
|
|
registry](introduction.md), or jump directly to [deployment
|
2017-01-12 20:54:21 +01:00
|
|
|
instructions](deploying.md).
|