Request an invite
Docs menu

osmates template pull

Pull a template from an OCI registry into the library.

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

The 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.

--json

Print machine-readable JSON.

JSON output

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

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

chunksintegerRequired
digeststringRequired
downloadedBytesintegerRequired

At least 0.

downloadedChunksintegerRequired
elapsedintegerRequired
referencestringRequired
templateobjectRequired
template.acceleratedGraphicsboolean
template.accountobjectRequired
template.cameraobject
template.clipboardstringRequired

One of off, to-guest, to-mac, both.

template.cpuCountintegerRequired
template.createdAtstring (date-time)Required
template.creatorstring
template.credentialsarray of objects
template.dataDisksarray of objects
template.discstring (uri)
template.diskBusstring

One of nvme.

template.diskSizeintegerRequired

At least 0.

template.displayobject
template.displayCountinteger
template.egressobject
template.enginestringRequired

One of virtualization, hypervisor.

template.firmwareobject
template.firstAgentAnswerstring (date-time)
template.forwardsarray of objects
template.highDynamicRangeboolean
template.idstring (uuid)Required
template.importedobject
template.isEphemeralbooleanRequired
template.keepsMacAwakeboolean
template.lastBuildobject
template.macOSobject
template.memorySizeintegerRequired

At least 0.

template.namestringRequired
template.nestedVirtualizationboolean
template.networkobject

Holds one key: nat or vmnet.

template.operatingSystemstringRequired

One of linux, macOS, windows, freeBSD.

template.originobject
template.ownedByRunboolean
template.ownerobject
template.partitionGrowthobject
template.presetstring

One of agent-sandbox.

template.processorobject
template.pulledFromobject
template.recordingstring

One of off, on, video, trajectory.

template.requirementsobject
template.rosettaboolean
template.secureBootboolean
template.securityKeyboolean
template.sharesarray of objectsRequired
template.shortcutsstring

One of mac, pc.

template.snapshotPolicyobjectRequired
template.soundobject
template.sourceobject
template.startsAtLoginboolean
template.templateSincestring (date-time)
template.usbDevicesarray of objects
template.watchdogboolean
template.windowsDriversobject
template.windowsDriversUndonestring
template.workspaceobject

Fields nested deeper are in the schema.

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