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

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/create_container_registry.rs#L19-L32)
pub async fn [create\_container\_registry](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/create-container-registry.md#method.create_container_registry)( \&self, registry\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), uri: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), credential: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[CreateContainerRegistryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateContainerRegistryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Create a container registry

##### Arguments

<ul>
  <li>`registry_name` - Name of the registry to be created.</li>
  <li>`uri` - The URI of the registry.</li>
  <li>`credential` - Credential name to connect to the registry.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/create_container_registry.rs#L43-L63)
pub async fn [create\_container\_registry\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/create-container-registry.md#method.create_container_registry_with_opts)( \&self, registry\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), uri: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), credential: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), options: [CreateContainerRegistryRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateContainerRegistryRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[CreateContainerRegistryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateContainerRegistryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Create a container registry

##### Arguments

<ul>
  <li>`registry_name` - Name of the registry to be created.</li>
  <li>`uri` - The URI of the registry.</li>
  <li>`credential` - Credential name to connect to the registry.</li>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/create_container_registry.rs#L66-L77)
pub async fn [create\_container\_registry\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/create-container-registry.md#method.create_container_registry_raw)( \&self, request: &[CreateContainerRegistryRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateContainerRegistryRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[CreateContainerRegistryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateContainerRegistryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`CreateContainerRegistryRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateContainerRegistryRequest) to the `/create/container/registry` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/create_container_registry.rs#L81-L93)
pub async fn [create\_container\_registry\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/create-container-registry.md#method.create_container_registry_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[CreateContainerRegistryRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateContainerRegistryRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[CreateContainerRegistryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateContainerRegistryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`CreateContainerRegistryRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateContainerRegistryRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


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