Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #335 from thaJeztah/19.03_backport_dev190815
Browse files Browse the repository at this point in the history
[19.03 backport] fix docker rmi stucking
  • Loading branch information
andrewhsu authored Sep 23, 2019
2 parents 08af35b + 8306f1e commit 09b72e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/images/image_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func (i *ImageService) checkImageDeleteConflict(imgID image.ID, mask conflictTyp
if mask&conflictRunningContainer != 0 {
// Check if any running container is using the image.
running := func(c *container.Container) bool {
return c.IsRunning() && c.ImageID == imgID
return c.ImageID == imgID && c.IsRunning()
}
if container := i.containers.First(running); container != nil {
return &imageDeleteConflict{
Expand Down

0 comments on commit 09b72e0

Please sign in to comment.