Private Docker registry on a dedicated port (HTTPS with a certificate of the CA plug-in), login with user and API key (disabled until it is switched on).
| Id | docker-registry |
|---|---|
| Role | registry - needed for the page and the REST API (administrators always may) |
| Page | Plugins > Open (overlay with an X at the top right) or /plugins/docker-registry/ |
| REST | /api/plugins/docker-registry/… and, for callers with the role, /plugins/docker-registry/… |
In the administration open Plugins, select the row of this plug-in and press Open. The page opens in an overlay dialog: close it with the X at the top right, with Esc or by clicking outside; Open in a new tab next to the title shows it full size.
The page is divided into the tabs Registry, How to use, Repositories.
| Label | Meaning |
|---|---|
| Port | |
| Address (empty: all) | |
| Storage folder | |
| Certificate | |
| Certificate authority (for an own certificate) | |
| Names of the certificate (comma) | |
| Valid days | |
| System | |
| Certificate check | |
| Image (repository:tag) | |
| User | |
| Repository | Column of a table |
| Tag | Column of a table |
| Size | Column of a table |
| Digest | Column of a table |
| Pushed | Column of a table |
| Time | Column of a table |
| Reference | Column of a table |
A private Docker / OCI registry in Vibecat. The protocol of a registry is the Docker registry HTTP API v2: ordinary HTTP(S) with JSON and binary bodies, so the plug-in uses a normal Tomcat connector: it creates the port docker-registry (Ports page) and answers the registry calls only on that port (everything else there is 404). The plug-in is off until it is switched on.
localhost only, so everything else needs HTTPS. With TLS on, the plug-in asks the CA plug-in for a server certificate for the names you give (host name, IP addresses), keeps it in its data folder and renews it before it expires. Clients must trust the CA: ca.crt (button, or https://host:port/ca.crt) goes to /etc/docker/certs.d/host:port/ca.crt (Linux) or into the trust store.docker login host:port -u user -p vk_…). API keys are made on the Users page (a key has the roles of its user or only the roles you name, may expire, is shown once, can be revoked) and work for every login of Vibecat.registry pushes, pulls and deletes (if allowed); registry-read pulls; administrators can do everything.https://host:port/ui/ without a login (it shows the images, tags, sizes, and the commands to pull an image and to create a container; otherwise users with the role registry or registry-read see it after a login). Public pull lets everybody read the images without user data. Public push lets everybody push (and only push: deleting always needs a login). Switch these on only on a private network. GET /v2/, /v2/_catalog, /v2/<name>/tags/list | version check, repositories, tags |
HEAD|GET|DELETE /v2/<name>/blobs/<digest> | layers and configs (content addressed, SHA-256) |
POST|PATCH|PUT /v2/<name>/blobs/uploads/… | upload in one piece or in chunks, also cross repository mount |
HEAD|GET|PUT|DELETE /v2/<name>/manifests/<tag|digest> | manifests (Docker v2, OCI, manifest lists); a manifest is accepted when its layers are there |
The storage is a folder (blobs/sha256/.., repos/<name>/manifests|tags). Remove unused blobs deletes the layers no manifest refers to (and uploads older than a day). Deleting a tag keeps the manifest and its layers until then.