A typescript client for communicating with a local or remote instance of linux containers. The interface is object-oriented, simple and uniform. Unrestrictive with an open MIT license.
This package was ported from Alan Doherty's node-lxd
and updated to support TypeScript and modern async/await style code.
This package forked from node-lxd
, but it should not be considered a drop-in replacement, as we've made several breaking changes.
Installing
$ npm install --save node-lxd
Getting Started
The following example connects to the local LXC instance and launches a new container.
; const client = ; async { const container = await client; await containerstart; console;};
Example
The following example uses an express application to allow users to create containers and execute commands.
// requires;; const client: Client = ;const app = ; app; app; app;