# Generating Credentials for a Container Registry

When you create a registry in AceCloud, you need credentials to log in and push/pull images using Docker or Helm. The **Generate Credentials** option provides secure authentication details for accessing your registry.

**Important**: Credentials are shown only once at the time of generation. If you do not save them, you will not be able to retrieve them again.

{% stepper %}
{% step %}

### Accessing the Generate Credentials option

* Log in to the **AceCloud Console**.
* Select your **Project** and **Region**.
* Navigate to **Container Registry**.
* Click Overview.
  {% endstep %}

{% step %}

### Generating Credentials

* Click **Generate Credentials**.
* A modal window will display the following details:
  * **Username (Access ID)**
  * **Password (Access Secret)**

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

* Copy and store these credentials in a secure password manager or download them.

**Note**: Credentials cannot be retrieved later. If lost, you must regenerate new credentials.
{% endstep %}
{% endstepper %}

## Using the credentials

Docker login

```bash
docker login <registry-endpoint> -u <username> -p <password>
```

Helm login

```bash
helm registry login <registry-endpoint> -u <username> -p <password>
```

Once logged in, you can push and pull images or Helm charts to your registry.

## Security best practices

* Store credentials in a secure vault or password manager.
* Avoid hardcoding them into scripts. Use environment variables instead.
* Rotate credentials periodically to reduce risk.


---

# 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.acecloud.ai/knowledge-base/registry/generating-credentials-for-a-container-registry.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.
