Skip to content

Commit

Permalink
Fix for rmi -f when error "no such id". (9056)
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
  • Loading branch information
jessfraz committed Nov 18, 2014
1 parent a060510 commit ac40e7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daemon/image_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ func (daemon *Daemon) canDeleteImage(imgID string, force bool) error {
for _, container := range daemon.List() {
parent, err := daemon.Repositories().LookupImage(container.Image)
if err != nil {
if daemon.Graph().IsNotExist(err) {
return nil
}
return err
}

Expand Down

0 comments on commit ac40e7c

Please sign in to comment.