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
- CLI
- UI
crusoe registry repositories create \
--name my-nginx-repo \
--location us-east1-a \
--mode standard
- Visit the Crusoe Cloud console
- Select the "Registry" tab in the left nav
- Select "Create Repository"
- Select "Standard" mode
- Select "Create"
Your repository URL will be in the header details at the top of the page.
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.
- CLI
- UI
crusoe registry repositories create \
--name my-dockerhub-cache \
--location us-east1-a \
--mode pull-through-cache \
--upstream-registry \
url=registry-1.docker.io,provider=docker-registry,username=myuser,password=mypass
To see all supported upstream registry providers, use crusoe registry supported providers
.
- Visit the Crusoe Cloud console
- Select the "Registry" tab in the left nav
- Select "Create Repository"
- Select "Pull-through Cache" mode
- Select your upstream registry provider
- Enter your upstream registry URL and, optionally, your credentials
- Select "Create"
Your repository URL will be in the header details at the top of the page.
Listing and Getting Repository Details
- CLI
- UI
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
View and manage your repositories by navigating to the "Registry" section of the Crusoe Cloud console.
Deleting a Repository
- CLI
- UI
crusoe registry repositories delete my-app-repo --location us-east1-a
Repositories can be deleted from their details page in the "Registry" section of the Crusoe Cloud console. Your repository must be empty before deleting.
Repository URL Structure
CCR repository URLs follow a standard format of:
registry.<location>.ccr.crusoecloudcompute.com/<repository-name>.<first-8-digits-of-project-id>