lxd
lxd tasks¶
This module provides tasks for managing lxd containers.
container(id, present=True, image='ubuntu:16.04')
¶
Add/remove LXD containers.
Note: does not check if an existing container is based on the specified image.
- id: name/identifier for the container
- image: image to base the container on
- present: whether the container should be present or absent
Example:
.. code:: python
lxd.container(
name="Add an ubuntu container",
id="ubuntu19",
image="ubuntu:19.10",
)