ctop icon indicating copy to clipboard operation
ctop copied to clipboard

Support for recent versions of runC

Open teddyking opened this issue 7 years ago • 1 comments

When running ctop with a recent version of runC, the following error is generated:

failed to read container: json: cannot unmarshal object into Go struct field Config.capabilities of type []string

I think this is probably because ctop is using runC version 0.1.1 (which is now over a year old). In 0.1.1 capabilities are defined as a []string whereas in newer versions they are their own separate struct.

Would it be possible to support the latest runC version? Happy to open a PR for this if yes.

teddyking avatar Jul 07 '17 12:07 teddyking

@teddyking I'd happily accept a PR for latest runC support.

0.1.1 is still the latest release available via major distros; however, we can simply move support for this older version to its own branch/build.

bcicen avatar Jul 21 '17 08:07 bcicen