Container registry
A private place for your docker images. Make it, docker login, push, and pull from your boxes and clusters.
A container registry keeps docker images: the ones you build and want to run somewhere else. Yours is private, has an HTTPS address, and speaks the same protocol as Docker Hub, so docker, docker buildx, podman, skopeo and Kubernetes work with it.
kvbox runs the registry behind it: there is no server to look after, and it never shows in kvbox ls.
kvbox registry create # about a minute; prints the address and the password
docker login cr-you.kvbox.app -u kvbox # paste the password
docker tag myapp cr-you.kvbox.app/myapp:1.0
docker push cr-you.kvbox.app/myapp:1.0One registry per account
Your account has at most one registry, so no command takes a name. Image names keep things apart inside it: cr-you.kvbox.app/myapp, cr-you.kvbox.app/team/api. It has:
- an address: usually
cr-<account>.kvbox.app(your username, or the org's slug). An account whose name has a.or_, or whose address was taken, gets one with a random part: always use the addresskvbox registry createorkvbox registry infoprints; - one login: the user
kvboxand a password kvbox generates. Whoever has it can push, pull and delete; - a size: 20 GB unless you say otherwise (
kvbox registry create --size 50), between 10 and 1000.
kvbox registry info # address, how full it is, its repositories and their tagsThe password
kvbox registry password # the login, any time
kvbox registry password --reset # a new password; the old one stops working at oncecreate prints the password once unasked; kvbox registry password shows it again whenever you need it. After --reset, every docker login and every Kubernetes pull secret made with the old password stops working: log in again and make the secrets anew.
In a script, give docker the password on stdin so it is never on a command line:
kvbox registry password --json | jq -r .password | docker login cr-you.kvbox.app -u kvbox --password-stdinPull from a box
A box pulls like any machine with docker: log in once, then use the full image name.
docker login cr-you.kvbox.app -u kvbox
docker run -d -p 8080:8080 cr-you.kvbox.app/myapp:1.0Pull from a Kubernetes cluster
A cluster pulls with an image pull secret made from the same login:
kubectl create secret docker-registry kvbox-registry \
--docker-server=cr-you.kvbox.app --docker-username=kvbox \
--docker-password="$(kvbox registry password --json | jq -r .password)"spec:
imagePullSecrets:
- name: kvbox-registry
containers:
- name: myapp
image: cr-you.kvbox.app/myapp:1.0Large images and multi-arch
Layers of several GB push and pull fine: one layer may take up to an hour to upload. docker buildx build --platform linux/amd64,linux/arm64 --push -t cr-you.kvbox.app/myapp:1.0 . works as it does anywhere.
More room
kvbox registry grow 50 # to 50 GBIt only grows, and growing restarts the registry once: a few seconds during which pushes and pulls fail. kvbox registry info shows what is used and warns when it is nearly full. A full registry refuses pushes; pulls keep working.
Images are deleted with docker and OCI tools against the registry (skopeo delete docker://cr-you.kvbox.app/myapp:1.0, regctl tag rm); kvbox lists repositories but does not delete them. The room a deleted image used comes back by itself within about two hours, without a restart. Layers shared between images are kept once.
Backups
kvbox registry backup create # back up every image; it runs in the background (--wait stays)
kvbox registry backup ls # its backups, newest first
kvbox registry backup restore <id> # every image goes back to the backup's; asks first
kvbox registry backup rm <id> # delete a backup for good; asks first
kvbox registry backup schedule --on # back it up every night (--at <hour> UTC, --off; alone: shows when)A backup is your whole registry at one instant: every repository, tag and layer. It is taken while the registry runs, encrypted and kept off its host: the same backups as a volume's, so a second backup uploads only what changed. --org <slug> backs up an org's registry. The registry can take 2 backups in any 24 hours, and each is kept 30 days.
restore puts every image back as it was then and restarts the registry (a minute or so during which pushes and pulls fail). Images and tags pushed since the backup are gone; ones deleted since are back. The address and the password stay as they are now: the login is not part of a backup, so nothing that pulls has to change.
kvbox registry backup schedule --on backs the registry up on its own every night, at an hour picked for it between 00:00 and 05:00 UTC (--at 3 for 03:00 UTC, --off to stop). It is off until you turn it on, costs $0.10 a night once the backup is ready, and is outside the 2 a day you may take yourself: see nightly backups.
A restore only goes into the registry the backup was taken of: once the registry is deleted, its backups can no longer be restored, not even into a new one. They are still listed by kvbox registry backup ls until they expire, and kvbox registry backup rm deletes them sooner.
Delete
kvbox registry rm # asks first; every image goes with itIts address is free again and its cost stops.
Price
$6 a month for the registry, with 20 GB included, and $0.06 a month for each further GB of its size. It is charged by the hour for as long as the registry exists, whatever it holds. kvbox registry info prints the estimate for yours, and kvbox usage shows it on a line of its own. A backup taken by hand costs $1 once it is ready.
When your credit runs out the registry is put to sleep with the rest of your account: pushes and pulls fail and the images stay. It answers again once you top up.
Orgs
A registry belongs to you or to an org, like a box: --org <slug> on any command. An org has its own registry, its own address and its own bill. Members see an org's registry and what is in it; seeing or resetting its password, growing it and deleting it are for whoever created it and for the org's admins.
From code
The TypeScript SDK has all of it as kvbox.registry.
Not yet
One login for everything: there are no read-only pull keys and no per-repository permissions. Repositories and tags are not deleted from the CLI or the web app. A backup cannot be put into a new registry after the old one is deleted. No image scanning, and no anonymous (public) pulls.