# Hosted Repository for Docker

A hosted repository using the Docker repository format is typically called a private Docker registry. It can be used to upload your own container images as well as third-party images. It is common practice to create two separate hosted repositories for these purposes.

To create a Docker hosted repository, simply create a new _docker (hosted)_ repository as documented in [Repository Management](https://help.sonatype.com/en/repository-management.html "Repository Management").

Minimal configuration steps are:

- Define _Name_
- Select _Blob store_ for Storage

Docker clients may `push` images to this repository, and subsequently access them directly from the hosted repository or ideally from the Docker repository group as documented in [Grouping Docker Repositories](https://help.sonatype.com/en/grouping-docker-repositories.html "Grouping Docker Repositories").

## Deployment Policy

Docker repositories support all the regular options for hosted repository deployment policies.

An additional configuration option named _Allow redeploy only on 'latest' tag_ appears when the _Deployment Policy_ is set to _Disable redeploy_.

|     |
| --- |
|  |

When enabled this allows pushing a new docker 'latest' tag for an existing image of the same name.
