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

Commit 56b48a3

Browse files
authored
Merge pull request #335 from thaJeztah/19.03_backport_dev190815
[19.03 backport] fix docker rmi stucking Upstream-commit: 09b72e0be471b066f62d5d2b51ba2900df85805b Component: engine
2 parents 0c39aa1 + 1b1dbac commit 56b48a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/engine/daemon/images/image_delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ func (i *ImageService) checkImageDeleteConflict(imgID image.ID, mask conflictTyp
369369
if mask&conflictRunningContainer != 0 {
370370
// Check if any running container is using the image.
371371
running := func(c *container.Container) bool {
372-
return c.IsRunning() && c.ImageID == imgID
372+
return c.ImageID == imgID && c.IsRunning()
373373
}
374374
if container := i.containers.First(running); container != nil {
375375
return &imageDeleteConflict{

0 commit comments

Comments
 (0)