有人知道如何使用LXC Python 3绑定吗?

2024-05-17 05:41:53 发布

您现在位置:Python中文网/ 问答频道 /正文

有人知道让Python3 LXC工作的简单命令吗? 我在本文档和博客中尝试了这些示例,但函数只返回“False”

Python 3.6.8 (default, Aug 24 2020, 17:57:11)
[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxc
>>> container = lxc.Container('test')
>>> container.create('busybox')
False

Documentation

https://sgros-students.blogspot.com/2013/04/lxc-python-bindings.html


Tags: 函数文档命令falsedefault示例oncontainer