Does libcontainer have a Python binding?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I need to work with containers that are created and operated through runc and thus libcontainer. These containers are not Docker containers. These containers are not visible to Docker, and are also not visible to the lxc tools and cannot be accessed via the lxc Python package.
Does libcontainer have Python bindings, preferably for Python3?
For instance, at the moment I'm spawning runc list -f json and then parse the resulting JSON answer. I would like to avoid having to rely on the runc cli tool, but instead directly use libcontainer. How could this be achieved, if possible at all?
python python3 libcontainer
add a comment |Â
up vote
0
down vote
favorite
I need to work with containers that are created and operated through runc and thus libcontainer. These containers are not Docker containers. These containers are not visible to Docker, and are also not visible to the lxc tools and cannot be accessed via the lxc Python package.
Does libcontainer have Python bindings, preferably for Python3?
For instance, at the moment I'm spawning runc list -f json and then parse the resulting JSON answer. I would like to avoid having to rely on the runc cli tool, but instead directly use libcontainer. How could this be achieved, if possible at all?
python python3 libcontainer
Doesn't look like it...libcontaineris a Go library and it doesn't seem to have any bindings to any other languages. Furthermore, most of whatrunc listdoes is not really exposed bylibcontainer, it only uses some shallow helpers from that library... You should probably just spawnruncusing Python'ssubprocessand parse the resulting JSON with ajsonmodule.
â Filipe Brandenburger
May 9 at 21:06
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to work with containers that are created and operated through runc and thus libcontainer. These containers are not Docker containers. These containers are not visible to Docker, and are also not visible to the lxc tools and cannot be accessed via the lxc Python package.
Does libcontainer have Python bindings, preferably for Python3?
For instance, at the moment I'm spawning runc list -f json and then parse the resulting JSON answer. I would like to avoid having to rely on the runc cli tool, but instead directly use libcontainer. How could this be achieved, if possible at all?
python python3 libcontainer
I need to work with containers that are created and operated through runc and thus libcontainer. These containers are not Docker containers. These containers are not visible to Docker, and are also not visible to the lxc tools and cannot be accessed via the lxc Python package.
Does libcontainer have Python bindings, preferably for Python3?
For instance, at the moment I'm spawning runc list -f json and then parse the resulting JSON answer. I would like to avoid having to rely on the runc cli tool, but instead directly use libcontainer. How could this be achieved, if possible at all?
python python3 libcontainer
asked May 9 at 19:59
TheDiveO
22310
22310
Doesn't look like it...libcontaineris a Go library and it doesn't seem to have any bindings to any other languages. Furthermore, most of whatrunc listdoes is not really exposed bylibcontainer, it only uses some shallow helpers from that library... You should probably just spawnruncusing Python'ssubprocessand parse the resulting JSON with ajsonmodule.
â Filipe Brandenburger
May 9 at 21:06
add a comment |Â
Doesn't look like it...libcontaineris a Go library and it doesn't seem to have any bindings to any other languages. Furthermore, most of whatrunc listdoes is not really exposed bylibcontainer, it only uses some shallow helpers from that library... You should probably just spawnruncusing Python'ssubprocessand parse the resulting JSON with ajsonmodule.
â Filipe Brandenburger
May 9 at 21:06
Doesn't look like it...
libcontainer is a Go library and it doesn't seem to have any bindings to any other languages. Furthermore, most of what runc list does is not really exposed by libcontainer, it only uses some shallow helpers from that library... You should probably just spawn runc using Python's subprocess and parse the resulting JSON with a json module.â Filipe Brandenburger
May 9 at 21:06
Doesn't look like it...
libcontainer is a Go library and it doesn't seem to have any bindings to any other languages. Furthermore, most of what runc list does is not really exposed by libcontainer, it only uses some shallow helpers from that library... You should probably just spawn runc using Python's subprocess and parse the resulting JSON with a json module.â Filipe Brandenburger
May 9 at 21:06
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f442852%2fdoes-libcontainer-have-a-python-binding%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Doesn't look like it...
libcontaineris a Go library and it doesn't seem to have any bindings to any other languages. Furthermore, most of whatrunc listdoes is not really exposed bylibcontainer, it only uses some shallow helpers from that library... You should probably just spawnruncusing Python'ssubprocessand parse the resulting JSON with ajsonmodule.â Filipe Brandenburger
May 9 at 21:06