# Docker Registry Credentials (Optional)

If you use an external Docker registry (outside of Google’s own GCR or GAR) like Docker Hub, Amazon ECR, or private registries, you must configure Docker registry credentials. This step ensures that your GCP environment has the proper authentication to access images from an external registry, preventing unauthorized access or image pull failures.

{% hint style="info" %}
This step is only needed if you are using an external non-GCR registry.
{% endhint %}

## Set Docker Registry Credentials

1. In the DuploCloud Portal, navigate to **Docker** -> **Services**.
2. From the **Docker** list box, select **Docker Credentials**. The **Set Docker registry Creds** pane displays.
3. Enter your Docker credentials (**Username**, **Password**, and **Email**), and click **Submit**. The Docker registry credentials are passed to the Kubernetes cluster as a `kubernetes.io/dockerconfigjson` secret.

## Add Multiple Docker Registry Credentials

Pull images from multiple Docker registries by adding multiple Docker Registry Credentials.

1. In the DuploCloud Portal, click **Administrator** -> **Plan**. The **Plans** page displays.
2. Select the Plan name from the **NAME** column.
3. Select the **Config** tab, and click **Add**. The **Add Config** pane displays.
4. In the **Config Type** list box, select **DockerRegistryCreds**.
5. In the **Name** field, enter the registry name.
6. In the **Value** field, enter your registry credentials.
7. Click **Submit**.

<div align="left"><figure><img src="/files/5MkHm0QyCiJbS6chL5jv" alt=""><figcaption><p>The <strong>Add Config</strong> pane</p></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview-1/prerequisites/docker/docker-registry-credentials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
