> For the complete documentation index, see [llms.txt](https://docs.acecloud.ai/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acecloud.ai/knowledge-base/registry/generating-credentials-for-a-container-registry.md).

# 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.
