lxc-ruby icon indicating copy to clipboard operation
lxc-ruby copied to clipboard

Support for lxc 1.0.0

Open hamann opened this issue 11 years ago • 2 comments

Hi,

this should add basic support for lxc 1.0.0. With 1.0.0 the following things has changed:

  • lxc-version was removed and lxc-info --version has to be used
  • output of lxc-info -n foo has changed (state => State, pid => PID)
  • lxc-ps and lxc-netstat where removed, instead lxc-attach should be used, see mail

I also some removed unnecessary dependency checks for binaries which aren't provided by upstream lxc and aren't used in this gem, like setcap or setuid

Still open: reimplement Container.processes method to use lxc-attach -n foo -- ps <arguments>

Implemented and tested on debian wheezy 7.4

hamann avatar Mar 01 '14 15:03 hamann

I havent looked into new LXC version yet, so this PR will have to wait for a while.

sosedoff avatar Mar 02 '14 05:03 sosedoff

The lxc guys created a ruby binding for lxc, and it works. Don't know if it makes sense to investigate more work on this issue.

hamann avatar Mar 06 '14 23:03 hamann