A java rest API client for LXD (Linux Container Daemon) that allows Java applications to interact with Linux based lxd/lxc commands To test, use the CLI:
- bin/jlxd.sh
The main interface is here:
Sample code (and the command line interface (CLI)) is here:
To use run use Maven:
- mvn install
- bin/jlxd.sh
See:
- https://www.stgraber.org/2016/04/18/lxd-api-direct-interaction
- http://www.ubuntu.com/cloud/lxd
- https://linuxcontainers.org/lxd/getting-started-cli
- https://github.com/lxc/lxd/blob/master/doc/rest-api.md
Note:
- This now works on a both local and remote LXD instances
- Most GET operations are implemented, but only a few of the POST/PUT are
- Cannot create containers from existing images - some things are hard coded here