Docs / Quickstart
Quickstart
Four concepts and two commands are enough to start using Kestrel.
Concepts
- Registry
- The service that stores and serves artifacts, addressed by a host name such as
registry.example.com. - Repository
- A named collection of versions of one artifact, for example
platform/api-gateway. The first path segment is the namespace. - Tag
- A human-readable, movable name for a version, such as
1.4.2orstable. A tag can be reassigned to a newer build. - Digest
- A content hash such as
sha256:9c1f…that identifies one exact artifact. Digests never change; pinning a digest pins the bytes.
Push an artifact
The examples use kestrel, a generic command-line client that speaks the OCI distribution protocol. Any OCI-compatible client works the same way. The client reads an access token from the KESTREL_TOKEN environment variable; create a token with write scope as described in the access guide.
# Push an OCI image layout to a repository with a version tag
kestrel push registry.example.com/platform/api-gateway:1.4.2 ./out/image
# Push a generic binary artifact
kestrel push registry.example.com/libs/common-utils:2.0.1 ./dist/common-utils.tar.gz
Pull an artifact
# Pull by tag — convenient for development
kestrel pull registry.example.com/platform/api-gateway:1.4.2
# Pull by digest — exact bytes, recommended for deployments
kestrel pull registry.example.com/platform/api-gateway \
--digest sha256:9c1f4a2e7b8d0c35f6a19e2d4b7c8091a3e5f2d6c8b0a4e7f1d2c3b4a5960718
Verify before you run
# Check the signature attached to an artifact
kestrel verify registry.example.com/platform/api-gateway:1.4.2 \
--key ./keys/release.pub
Next: define retention rules so old builds clean themselves up, and read about tokens and roles before handing credentials to pipelines.