Creates a new container.
Parameters:
name
- The name to give the new containerconfigPath
- A path to the configuration file that should be used when constructing this container.cb
- Callback defined asfunction(e,container)
e
- the error of creation failscontainer
- the newly created container
Returns nothing
Checks to see if the container has already been defined on the system.
Parameters:
cb
- Callback defined asfunction(defined)
defined
- a boolean, true if defined on system.
returns nothing
Creates the container.
Parameters:
template
- Template to execute to instantiate the root filesystem and adjust the configuration.backingStore
- A string representing the backing store type to use (if NULL, dir will be used).backingStoreParams
- Additional parameters for the backing store.flags
- LXC_CREATE_* commands. Currently only (lxc.createQuiet is supported).args
- flags to pass to the template.