mirror of
https://github.com/opencontainers/runc.git
synced 2025-09-27 03:46:19 +08:00

For some rootless container, runc has no access to cgroup, But the container is still running. So we should return the `ErrNotRunning` and `ErrCgroupNotExist` error seperatlly. Signed-off-by: lifubang <lifubang@acmcoder.com>
15 lines
520 B
Go
15 lines
520 B
Go
package libcontainer
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrExist = errors.New("container with given ID already exists")
|
|
ErrInvalidID = errors.New("invalid container ID format")
|
|
ErrNotExist = errors.New("container does not exist")
|
|
ErrPaused = errors.New("container paused")
|
|
ErrRunning = errors.New("container still running")
|
|
ErrNotRunning = errors.New("container not running")
|
|
ErrNotPaused = errors.New("container not paused")
|
|
ErrCgroupNotExist = errors.New("cgroup not exist")
|
|
)
|