osmates template pull
Pull a template from an OCI registry into the library.
osmates template pull <reference> [<name>] [--username <username>] [--json]The image's manifest and settings are checked before anything is written, and each chunk against its SHA-256 as it comes. The template appears in the library once every chunk is in. A pull that stopped keeps what it received, and the next pull of the same image goes on from there. The new template has its own identity and MAC address, and no password: set one with osmates vm password if you use vm sign-in. Name the image by tag, or by digest to get exactly one push. The login is Docker's, as for template push; a public image needs none. When your organization names signing keys, the image's cosign signature is checked before anything is written, and an image without one is refused. Pulling works in every edition.
Arguments
<reference>RequiredThe image: registry/repository:tag or registry/repository@sha256:<digest>.
<name>The template's name. Default: the last part of the repository.
--username <username>The registry's user name; the password or token comes from standard input.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/template/pull.json
chunksintegerRequireddigeststringRequireddownloadedBytesintegerRequiredAt least 0.
downloadedChunksintegerRequiredelapsedintegerRequiredreferencestringRequiredtemplateobjectRequiredtemplate.acceleratedGraphicsbooleantemplate.accountobjectRequiredtemplate.cameraobjecttemplate.clipboardstringRequiredOne of
off,to-guest,to-mac,both.template.cpuCountintegerRequiredtemplate.createdAtstring (date-time)Requiredtemplate.creatorstringtemplate.credentialsarray of objectstemplate.dataDisksarray of objectstemplate.discstring (uri)template.diskBusstringOne of
nvme.template.diskSizeintegerRequiredAt least 0.
template.displayobjecttemplate.displayCountintegertemplate.egressobjecttemplate.enginestringRequiredOne of
virtualization,hypervisor.template.firmwareobjecttemplate.firstAgentAnswerstring (date-time)template.forwardsarray of objectstemplate.highDynamicRangebooleantemplate.idstring (uuid)Requiredtemplate.importedobjecttemplate.isEphemeralbooleanRequiredtemplate.keepsMacAwakebooleantemplate.lastBuildobjecttemplate.macOSobjecttemplate.memorySizeintegerRequiredAt least 0.
template.namestringRequiredtemplate.nestedVirtualizationbooleantemplate.networkobjectHolds one key:
natorvmnet.template.operatingSystemstringRequiredOne of
linux,macOS,windows,freeBSD.template.originobjecttemplate.ownedByRunbooleantemplate.ownerobjecttemplate.partitionGrowthobjecttemplate.presetstringOne of
agent-sandbox.template.processorobjecttemplate.pulledFromobjecttemplate.recordingstringOne of
off,on,video,trajectory.template.requirementsobjecttemplate.rosettabooleantemplate.secureBootbooleantemplate.securityKeybooleantemplate.sharesarray of objectsRequiredtemplate.shortcutsstringOne of
mac,pc.template.snapshotPolicyobjectRequiredtemplate.soundobjecttemplate.sourceobjecttemplate.startsAtLoginbooleantemplate.templateSincestring (date-time)template.usbDevicesarray of objectstemplate.watchdogbooleantemplate.windowsDriversobjecttemplate.windowsDriversUndonestringtemplate.workspaceobject
Fields nested deeper are in the schema.
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. |