1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

fix run after rmi

This commit is contained in:
Victor Vieux 2013-05-09 18:57:47 +02:00
parent eed64e6777
commit 0a5d86d7be

View file

@ -62,7 +62,7 @@ func (graph *Graph) restore() error {
// FIXME: Implement error subclass instead of looking at the error text // FIXME: Implement error subclass instead of looking at the error text
// Note: This is the way golang implements os.IsNotExists on Plan9 // Note: This is the way golang implements os.IsNotExists on Plan9
func (graph *Graph) IsNotExist(err error) bool { 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. // Exists returns true if an image is registered at the given id.