(container-registry:docker)=

# Docker Hub

[Docker Hub](https://docs.docker.com/docker-hub/) is the largest repository of container images, housing an array of
content sources, which encompass container community developers, open-source projects, and independent software
vendors (ISVs) that build and distribute their code using containers.

## Register Container Registry

Obtain the Container Registry Information with the following steps:

1. To authenticate, you'll need to generate
   a [personal access token (PAT)](https://docs.docker.com/security/for-developers/access-tokens/). When generating the
   personal access token, ensure that you select a minimum of the following scopes:

* `read`
* `write`: If you want to upload the package to login_server, please provide the necessary permissions.

2. Make sure that you note down one of the personal access token shown on the screen.
3. Define the following:

* <b>login_server</b>: `index.docker.io/<NAMESPACE>`
* <b>username</b>:  Docker Hub username
* <b>password</b>: Docker Hub personal account token, or Dockerhub account password (not recommended)

```{note}
Replace NAMESPACE with the name of the personal account or organization to which you want the image to be scoped.
```
4. Proceed to [CLI command](cli-container-registry-register) to register the container registry.
