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

Export

Important: See Version 8 section below

export [options] <container> - exports a Subutai container

Options:

--token, -t <token>               (Mandatory!) user CDN token
--version, -v <string version>    template version, parent version is used if not specified
--size, -s <string size>          template preferred size ("tiny" - default, "small", "medium", "large", "huge")
--local, -l                       exports template to local template cache only without uploading to CDN
--name, -n                        template name

Examples:

subutai export container1 -n {template-name} -t {token} 
subutai export -v 1.0.1 -s medium container2 -t {token} 
subutai export c2 -t {token}

Version 8

Since agent version 8, --version/-v option changed to --ver/-r:

subutai export -r 1.0.1 -s medium container2 -t {token} 

Description:

The export sub command prepares an archive from a template in the template cache (/var/cache/subutai)

This archive can be moved to another Subutai peer and deployed as ready-to-use template or uploaded to Subutai's global template repository to make it widely available for others to use.

Configuration values for template metadata parameters can be overridden on export, like the recommended container size when the template is cloned using -s option. The template's version can also specified on export so the import command can use it to request specific versions.