# Setting Up Docker Hub

## 1. Move to the external registry creation screen

1\) Navigate to \[Build Configuration] - \[External Container Registries].

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2F4eTTVkLG860FnuruKQTm%2Fimage.png?alt=media&#x26;token=928b90c9-d536-44cc-8502-dd15448c8bde" alt=""><figcaption><p>[Screen] Registries</p></figcaption></figure>

2\) Click the "+ Register" button in the upper right corner to select the provider for creation.

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FO6QnEADlpG098H0X3y6y%2Fimage.png?alt=media&#x26;token=c3a69ca6-baf8-4105-a586-da4945a8b7cf" alt=""><figcaption><p>[Screen] Select External Registries</p></figcaption></figure>

## 2. Enter Registry Registration Information

1\) Click the "+ Register" button and select "Docker Hub"

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FVsS8NUU6fAlUcTlG0MDm%2Fimage.png?alt=media&#x26;token=a862c229-680b-43fb-8d7a-07268d53f756" alt=""><figcaption><p>[Screen] Select External Registries(Docker Hub)</p></figcaption></figure>

2\) After registering Docker Hub authentication information in the basic information, click the "Test Connection" button.

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2F8yMqCFtNTGJ6AMlRtGN3%2Fimage.png?alt=media&#x26;token=43a5eaa1-0129-462d-a63d-58239846a23d" alt=""><figcaption><p>[Screen] Register Docker Hub Registry Authentication Information</p></figcaption></figure>

| Item (\* is required) | Content                                                                                                                        |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Name\*                | Enter the name of the external container registry to be registered                                                             |
| Describe              | Enter a description for the external container registry.                                                                       |
| Endpoint URL\*        | <p>External Container Registry Endpoint Address<br>-> Mostly fixed as <a href="https://docker.io/"><https://docker.io></a></p> |
| Namespace\*           | Enter the registered registry namespace                                                                                        |
| Access ID\*           | Access Key                                                                                                                     |
| Access Secret\*       | Access Secret                                                                                                                  |

1. Enter the name of the registry to be created in the registry.
2. Enter a description for the registry in the description.
3. Enter the EndPoint URL in the correct format.
4. Enter the name of the registered registry.
5. Enter Access ID and Access Secret.
6. Click "Test Connection" in the upper right corner to verify if the registry is available.
7. Click the "Save" button in the upper right corner.

***

### To confirm the namespace

1\) Log in to Docker Hub and click on "Repositories" at the top.

{% embed url="<https://hub.docker.com/>" %}

2\) Click on "Create repository" in the upper right corner.

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-15ce5d2e293a9f52b2705734c8537da3e06b625d%2FUntitled%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

3\) Create a namespace and the image to be generated.

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-6345876d08a5c0afa7a37c5f1c87fb099dcf613e%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202024-01-09%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%205.22.26%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

Since Docker Hub creates both the repository and image name simultaneously, the image name in the Build/Pipeline > Build section should match the Docker Hub Repository Name for image build generation.

***

### To verify Access ID & Access Secret

1\) Click on the profile in the upper right corner and select "My Account."

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-418f22e7dbe6b76f62614ecab87b99746859a896%2FUntitled%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

2\) Confirm the Access ID

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-fdcff473c4ff2ec5a1d55130cb872a8660250570%2FUntitled%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>

`Access ID` : User's nickname or email address

3\) Click on the "Security" tab on the right, then click on "New Access Token" in the upper right.

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-74e4fcf2c41e171be62ed3f4a50a1a5df9c1e877%2FUntitled%20(4).png?alt=media" alt=""><figcaption></figcaption></figure>

4\) Enter a description for the token and copy the Access Token upon issuance.

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-d66a86ff489522409326e83b10a22b9e79fb8fee%2FUntitled%20(5).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-831c3a8394f8ea8e132d8e8515204fafd13ddd55%2FUntitled%20(6)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

`Access Token` : Copy Access Token
