Skip to content
Dilshat edited this page Jun 26, 2018 · 19 revisions

Import

import [options] <template> - import a Subutai template

Options:

--local, -l                       use local template archive

Examples:

subutai import management
subutai import id:{template-id}
subutai import foo@tom:1.0.0 -t {token}

Description:

The import command deploys a Subutai template on a Resource Host. The import algorithm works with both the global template repository and a local directory to provide more flexibility to enable working with published and custom local templates.

A concrete template can be referenced by specifying its ID:

subutai import id:73e95ab2-b9f8-4ca9-bbf4-34e22fc6ebfc

Or a full template reference (name@owner:version) can be used to always specify a concrete version of a template of a concrete owner (if version not specified, latest version is used):

subutai import foo@tom 
subutai import foo@tom:1.0.0

Using the full template reference is preferable since template ID might change.

The import binding retrieves the latest available template version from repository if a particular version is not specified. For details see how searching by name and optional properties works https://github.com/subutai-io/bazaar/wiki/How-to-fetch-template-metadata-by-name

Importing local template :

subutai import {path-to-template-archive} --local

subutai import management is a special operation which differs from the import of other templates. Besides the usual template deployment operations, "import management" clones management container, starts its, transforms the host network, and forwards a few host ports, etc.

Clone this wiki locally