> 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). Agents can also search and read this documentation through its [MCP server](https://docs.acecloud.ai/knowledge-base/~gitbook/mcp).

# 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="https://4132105993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xzVdxzgFAXWb0qJY9hx%2Fuploads%2FKKIXXiSMBVVa0cNZHgHo%2Funknown.png?alt=media&amp;token=bde35f54-6720-482c-b4a8-5e399577d0ac" 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.
