Request an invite
Docs menu

osmates template push

Push a template to an OCI registry.

Usage
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>Required

The template's name or identifier.

<reference>Required

Where 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 --remote shows. Default: none.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/template/push.json

chunksintegerRequired
digeststringRequired
elapsedintegerRequired
referencestringRequired
sizeintegerRequired

At least 0.

templatestringRequired
uploadedBytesintegerRequired

At least 0.

uploadedChunksintegerRequired

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page