From 17b76511d59eb8b3a8e88f51fc53c7edd4c29d37 Mon Sep 17 00:00:00 2001 From: AmirBuddy Date: Wed, 30 Oct 2024 21:27:47 +0330 Subject: [PATCH] Fix: Duplicate event on network disconnect #48797 This fix resolves the issue where a network disconnect generates duplicate events. Co-authored-by: eyeamnoob Signed-off-by: AmirBuddy Signed-off-by: eyeamnoob --- daemon/container_operations.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/daemon/container_operations.go b/daemon/container_operations.go index a7daf87f0e9ab..7a4e35695b671 100644 --- a/daemon/container_operations.go +++ b/daemon/container_operations.go @@ -1125,12 +1125,6 @@ func (daemon *Daemon) DisconnectFromNetwork(ctx context.Context, ctr *container. return err } - if n != nil { - daemon.LogNetworkEventWithAttributes(n, events.ActionDisconnect, map[string]string{ - "container": ctr.ID, - }) - } - return nil }