summaryrefslogtreecommitdiff
path: root/libpod/errors.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-02-09 05:33:14 -0700
committerDaniel J Walsh <dwalsh@redhat.com>2019-02-09 05:33:14 -0700
commit233ba5bd894aac77db1bb2e41b0ef464f865d2a0 (patch)
treee937c8b78b0bc53374fa45f94e909582ed2c402c /libpod/errors.go
parent1fd9be022fc1484c9bdebfc41008d2344237073c (diff)
downloadpodman-233ba5bd894aac77db1bb2e41b0ef464f865d2a0.tar.gz
podman-233ba5bd894aac77db1bb2e41b0ef464f865d2a0.tar.bz2
podman-233ba5bd894aac77db1bb2e41b0ef464f865d2a0.zip
Remove container from storage on --force
Currently we can get into a state where a container exists in storage but does not exist in libpod. If the user forces a removal of this container, then we should remove it from storage even if the container is owned by another tool. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/errors.go')
-rw-r--r--libpod/errors.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/libpod/errors.go b/libpod/errors.go
index d6614141c..30a19d30f 100644
--- a/libpod/errors.go
+++ b/libpod/errors.go
@@ -2,15 +2,20 @@ package libpod
import (
"errors"
+
+ "github.com/containers/libpod/libpod/image"
)
var (
// ErrNoSuchCtr indicates the requested container does not exist
- ErrNoSuchCtr = errors.New("no such container")
+ ErrNoSuchCtr = image.ErrNoSuchCtr
+
// ErrNoSuchPod indicates the requested pod does not exist
- ErrNoSuchPod = errors.New("no such pod")
+ ErrNoSuchPod = image.ErrNoSuchPod
+
// ErrNoSuchImage indicates the requested image does not exist
- ErrNoSuchImage = errors.New("no such image")
+ ErrNoSuchImage = image.ErrNoSuchImage
+
// ErrNoSuchVolume indicates the requested volume does not exist
ErrNoSuchVolume = errors.New("no such volume")