Skip to main content

Create a container registry

POST 

/api/v1/orgs/{orgId}/containers/registries

Overview: Creates a new registry configuration with automatic encryption for sensitive credentials.

Registry Type Requirements:

• DockerHub: Requires username and accessToken (must be provided together).

• AzureACR: Requires username and userPassword (must be provided together).

• AwsECR: Provide region, accessKey, and accessSecretKey together, or leave all three empty for anonymous access without authentication. Providing only some of them returns 400. When all three are provided, accessKey must be 20 characters, accessSecretKey must be 40 characters, and region must be a region code such as us-east-1; otherwise the request returns 400.

• Custom (e.g., Harbor): All credentials are optional. If authentication is used, username and userPassword must be provided together.

Please refer to the Example Value section below to view the complete request examples for each Registry type.

Request​

Responses​

Created registry DTO (Data Transfer Object).