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

# CREATE CONTAINER REGISTRY

<a id="sql-ml-create-cr" />

Creates a new reference to a
[Docker container registry](/content/ml/concepts#ml-registry) for
accessing [ML models](/content/ml/concepts#ml-model).

```sql title="CREATE CONTAINER REGISTRY Syntax" theme={null}
CREATE [OR REPLACE] CONTAINER REGISTRY <registry name>
URI = '<registry URI>'
CREDENTIAL = <credential name>
```

## Parameters

<AccordionGroup>
  <Accordion title="OR REPLACE" id="or-replace" defaultOpen>
    Any existing *container registry* reference with the same name will be dropped before creating
    this one
  </Accordion>

  <Accordion title="<registry name>" id="<registry-name>" defaultOpen>
    Name of the reference to the *container registry*, which can be referenced in subsequent
    commands
  </Accordion>

  <Accordion title="URI" id="uri" defaultOpen>
    The URI to the *container registry* itself
  </Accordion>

  <Accordion title="CREDENTIAL" id="credential" defaultOpen>
    Name of the [credential](/content/sql/ddl/create-credential#sql-create-credential) to use to authenticate to the
    *container registry*
  </Accordion>
</AccordionGroup>

## Examples

```sql title="CREATE CONTAINER REGISTRY Example" theme={null}
CREATE CONTAINER REGISTRY model_registry_docker
URI = 'https://index.docker.io'
CREDENTIAL = reg_cred;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.