Merge pull request #14578 from mountkin/fix-rmi-image-not-found

don't allow deleting the image of running containers
This commit is contained in:
David Calavera
2015-07-16 18:02:51 -07:00
2 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ func (daemon *Daemon) canDeleteImage(imgID string, force bool) error {
parent, err := daemon.Repositories().LookupImage(container.ImageID)
if err != nil {
if daemon.Graph().IsNotExist(err, container.ImageID) {
return nil
continue
}
return err
}