Skip to main content

Managing Repositories

A repository is an abstract folder you create within CCR, often so you can organize your images per team, business function, or deployment environment.

Creating a Standard Repository​

crusoe registry repositories create \
--name my-nginx-repo \
--location us-east1-a \
--mode standard

Creating a Pull-Through Cache​

A read-only cache for an upstream registry. When you pull an image, it is fetched from the upstream source, stored in your CCR repository, and then served.

Configuring Upstream Providers​

When you create a repository in pull-through cache mode, you must specify an upstream registry provider and url, and if applicable, a username and password. Below are instructions for common upstream providers. Any Docker V2-compliant registries not explicitly listed should use provider: docker-registry.

Registry ProviderExample URL (must start with http or https)providerusernamepassword
Google Cloud (GAR)https://<region>-docker.pkg.devgoogle-gar_json_keyEntire service account JSON key file
Google Cloud (GCR)https://gcr.iogoogle-gcr_json_keyEntire service account JSON key file
AWS ECR (Private)https://<id>.dkr.ecr.<region>.amazonaws.comaws-ecrIAM user's access key IDIAM user's secret key
AWS ECR Publichttps://public.ecr.awsdocker-registryN/AN/A
Docker Hubhttps://hub.docker.comdocker-hub<dockerhub_username><personal_access_token>
GitHub (GHCR)https://ghcr.iogithub-ghcr<github_username><personal_access_token>
Azure (ACR)https://<name>.azurecr.ioazure-acr<service_principal_id> or <access_token_name><client_secret> or <access_token>
GitLabhttps://registry.gitlab.comdocker-registry<gitlab_username><personal_access_token>
NVIDIA NGChttps://nvcr.iodocker-registry$oauthtokenNGC API key
Oracle (OCI)https://<region>.ocir.iodocker-registry<your-namespace>/<username>OCI Registry Token
crusoe registry repositories create \
--name my-dockerhub-cache \
--location us-east1-a \
--mode pull-through-cache \
--upstream-registry \
url=https://hub.docker.com,provider=docker-hub,username=myuser,password=mypass

To see all supported upstream registry providers, use crusoe registry supported providers.

Listing and Getting Repository Details​

List repositories in your project:

crusoe registry repositories list

Get details, including URL, for a specific repository:

crusoe registry repositories get my-app-repo --location us-east1-a

Deleting a Repository​

A repository must be empty to be deleted. To delete images, see managing images.

crusoe registry repositories delete my-app-repo --location us-east1-a

Repository URL Structure​

CCR repository URLs follow a standard format of:

registry.<location>.ccr.crusoecloudcompute.com/<repository-name>.<first-8-digits-of-project-id>