lxcjs
A Node JS wrapper around lxc commands.
Install
npm i --save lxcjs
Test
./test.js
Usage
const config = ;const lxc = config; // Containers statuslxc status ; // Container startlxc startcontainerName ; // Container stoplxc ; // Get all containerslxc util ; // Get running containerslxc util ; // Get stopped containerslxc util ; // Get informations on a containerlxc ;
With config.json providing following informations :
{
"lxc_path" : "/path/to/containers/directory",
"lxc_commands_path" : "/path/to/lxc/commands/directory"
}