osmates template push
Push a template to an OCI registry.
osmates template push [<options>] <template> <reference>The template goes as an OCI artifact: its settings, then its disks and firmware files in chunks of 32 MiB, each named by its SHA-256. Chunks of zeros stay behind, and chunks the registry has are not sent again, so a push that stopped goes on when run again. The guest's accounts, keys and files go with it; its password, shares, credentials, forwarded ports and snapshots don't. The login is Docker's: run docker login <registry> first, or give --username and the password or token on standard input. A registry on this Mac can answer plain HTTP; every other one needs HTTPS. Pushing a template needs OSMates Pro.
Arguments
<template>RequiredThe template's name or identifier.
<reference>RequiredWhere it goes: registry/repository:tag, as ghcr.io/acme/base:1.0; latest without a tag.
--username <username>The registry's user name; the password or token comes from standard input.
--publisher <publisher>Who the image says published it, as
template list --remoteshows. Default: none.--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/template/push.json
chunksintegerRequireddigeststringRequiredelapsedintegerRequiredreferencestringRequiredsizeintegerRequiredAt least 0.
templatestringRequireduploadedBytesintegerRequiredAt least 0.
uploadedChunksintegerRequired
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |