mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
fix run after rmi
This commit is contained in:
@@ -62,7 +62,7 @@ func (graph *Graph) restore() error {
|
||||
// FIXME: Implement error subclass instead of looking at the error text
|
||||
// Note: This is the way golang implements os.IsNotExists on Plan9
|
||||
func (graph *Graph) IsNotExist(err error) bool {
|
||||
return err != nil && strings.Contains(err.Error(), "does not exist")
|
||||
return err != nil && (strings.Contains(err.Error(), "does not exist") || strings.Contains(err.Error(), "No such"))
|
||||
}
|
||||
|
||||
// Exists returns true if an image is registered at the given id.
|
||||
|
||||
Reference in New Issue
Block a user