# Docker Hub

{% hint style="warning" %}
我们强烈建议升级到付费的 Docker Hub 等级以防止镜像下载限速。
{% endhint %}

### 您需要准备

* [x] 您的 Docker 仓库名称
* [x] 您的 Docker 访问令牌

### 访问令牌 或 部署令牌

{% hint style="success" %}
我们建议在生产环境使用只读令牌
{% endhint %}

您可以遵循此 [**教程**](https://docs.docker.com/docker-hub/access-tokens) 来生成访问令牌

### 拆分仓库名称

给定此完整仓库： **group/project**

您的 **仓库** 将始终为： **docker.io**

以及您的 **镜像** 将为： **group/project**

### 在 Edgegap 上添加应用

**API 示例**

```json
{
    [...]
    "docker_repository": "docker.io",
    "docker_image": "group/project",
    "docker_tag": "v1",
    "private_username": "example@edgegap.com",
    "private_token": "<Access Token>",
    [...]
}
```

**从仪表板**

在我们的仪表板中，私有 **注册表令牌** 将是您 **访问令牌 的内容**

<figure><img src="/files/af126fff1f131b9f2512f8a89eec92a8bd440796" alt=""><figcaption></figcaption></figure>


---

# 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.edgegap.com/zh/docs/tools-and-integrations/container/external-registries/docker-hub.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.
