summaryrefslogtreecommitdiff
path: root/libpod/define/errors.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-16 10:20:27 +0200
committerGitHub <noreply@github.com>2019-10-16 10:20:27 +0200
commit1137c1084b960c9d186cdf8276121658c33a1a56 (patch)
treea62cd88fd3415fd05e87d6ad3cdbbb5f36723ff7 /libpod/define/errors.go
parent5f72e6ef2ef7b6941cefc3c655903aeacb53e115 (diff)
parent0f6b0e8c9ca3bfa944294a0de98869d732988893 (diff)
downloadpodman-1137c1084b960c9d186cdf8276121658c33a1a56.tar.gz
podman-1137c1084b960c9d186cdf8276121658c33a1a56.tar.bz2
podman-1137c1084b960c9d186cdf8276121658c33a1a56.zip
Merge pull request #4256 from mheon/fix_volumes
Ensure volumes can be removed when they fail to unmount
Diffstat (limited to 'libpod/define/errors.go')
-rw-r--r--libpod/define/errors.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/define/errors.go b/libpod/define/errors.go
index 5392fbc62..523062866 100644
--- a/libpod/define/errors.go
+++ b/libpod/define/errors.go
@@ -65,6 +65,10 @@ var (
// CGroup.
ErrNoCgroups = errors.New("this container does not have a cgroup")
+ // ErrRootless indicates that the given command cannot but run without
+ // root.
+ ErrRootless = errors.New("operation requires root privileges")
+
// ErrRuntimeStopped indicates that the runtime has already been shut
// down and no further operations can be performed on it
ErrRuntimeStopped = errors.New("runtime has already been stopped")