lxd v0.1.6 LXD.Container
Link to this section Summary
Functions
List all containers
Create a new container
Run a remote command
Container information
Remove the container
Rename the container
Replace container configuration
State of the container
Status of the container as a string
Stop the container
Update container configuration
Link to this section Functions
List all containers
Create a new container
configs
is a map that define how to create the container
See official documention for more details here
Run a remote command
command
: must be a list splitted by space (see official documentation)envs
: map of environement variables to set
Record output is set to true
Return {:ok, return_code, stdout, stderr}
if success
Return {:error, reason}
if error
If stdout or stderr can’t be read, :error
is set instead
Does not support websocket
See official documention for more details here
Container information
Remove the container
Rename the container
Replace container configuration
State of the container
Status of the container as a string
Stop the container
Update container configuration