> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talosjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# docker:credentials:create

> Save a Docker registry access token under the user config.

Save a Docker registry access token for commands that push or pull images. The registry, username, and token are written as block-style YAML to `~/.talos/credentials/docker.yml` under the `default` profile.

Create a Docker access token at [app.docker.com](https://app.docker.com/settings/personal-access-tokens/create).

## Usage

```bash theme={null}
talos docker:credentials:create [options]
```

## Examples

Run with no flags to be prompted for the registry, username, and token:

```bash theme={null}
talos docker:credentials:create
```

Provide everything non-interactively:

```bash theme={null}
talos docker:credentials:create --registry=docker.io --username=ooneex --token=dckr_pat_xxxxxxxx
```

## Options

| Option       | Description                                                       | Default                            |
| ------------ | ----------------------------------------------------------------- | ---------------------------------- |
| `--registry` | Docker registry host.                                             | Prompted (defaults to `docker.io`) |
| `--username` | Docker username.                                                  | Prompted if omitted                |
| `--token`    | Docker access token to store.                                     | Prompted if omitted                |
| `--silent`   | Suppress the instructional message and the saved-to confirmation. | `false`                            |
