From 55cc80d3c9bfd96225db179b96427aa377ecb9dc Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 7 Aug 2019 09:53:59 -0500 Subject: varlink endpoint for containerstats requires root obtaining containerstats requires the use of cgroups. at present, rootless users do not have privileges to create cgroups. add an error message that catches this for the varlink endpoint and return a proper error. Fixes: #3749 Signed-off-by: baude --- API.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'API.md') diff --git a/API.md b/API.md index d468ba53d..336902616 100755 --- a/API.md +++ b/API.md @@ -265,6 +265,8 @@ in the [API.md](https://github.com/containers/libpod/blob/master/API.md) file in [error ErrCtrStopped](#ErrCtrStopped) +[error ErrRequiresCgroupsV2ForRootless](#ErrRequiresCgroupsV2ForRootless) + [error ErrorOccurred](#ErrorOccurred) [error ImageNotFound](#ImageNotFound) @@ -2006,6 +2008,9 @@ ContainerNotFound means the container could not be found by the provided name or ### type ErrCtrStopped Container is already stopped +### type ErrRequiresCgroupsV2ForRootless + +This function requires CGroupsV2 to run in rootless mode. ### type ErrorOccurred ErrorOccurred is a generic error for an error that occurs during the execution. The actual error message -- cgit v1.2.3-54-g00ecf