v3ss0n
(Phyo Arkar Lwin)
November 5, 2021, 5:01pm
1
I am trying to create a LXD Container , creating images are fine using this config →
conf = {
"name": "magento",
"source": {
"type": "image",
"alias": "magento",
},
"profiles": ["default","macvlan"]
}
container = client.containers.create(cont_conf,wait=True)
it works fine.
But if i want to load the container from file and create it , how should i do
v3ss0n
(Phyo Arkar Lwin)
November 6, 2021, 10:23am
2
thanks for the edit @stgraber , can i have any pointers?
API seems to be missing a lot of features : export is there , but there is no way to import via pylxd api.
stgraber
(Stéphane Graber)
November 6, 2021, 2:45pm
3
I added the pylxd tag so that hopefully the folks working on this binding will see this post and respond.
Pylxd is currently primarily developed and maintained by the MAAS team with help from community members.
The core LXD team doesn’t have a lot of Python experience to help with it.