Skip to content
Dilshat edited this page Aug 22, 2018 · 19 revisions

Import

Important: See Version 8 section below

import <template> - import a Subutai template

Examples:

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

Version 8

Since agent version 8, --local/-l option has been removed. To import local template, see Importing template from a local archive below.

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 template from a local archive:
subutai import {path-to-template-archive}

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.