canonical / pylxd

Python module for LXD
https://pylxd.readthedocs.io/en/latest/
Apache License 2.0
256 stars 135 forks source link

There is no method to import or export containers (aka lxc import and lxc export) #415

Open Dweller opened 4 years ago

Dweller commented 4 years ago

To my knowledge their is no pylxd methods to allow for the import and export of containers.

Would it be prudent to add them?

v3ss0n commented 3 years ago

There is export now : https://pylxd.readthedocs.io/en/latest/api.html?highlight=export#pylxd.models.Image.export But there is no such thing like Import , yet. Is there a way to create the containers from exported files?

v3ss0n commented 3 years ago

https://discuss.linuxcontainers.org/t/pylxd-how-to-create-contaienrs-from-exported-images-backups/12536