Skip to content

Commit 974bc84

Browse files
fix: network cleanup called twice
Signed-off-by: Shubharanshu Mahapatra <[email protected]>
1 parent cb915f6 commit 974bc84

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/nerdctl/container/container_run.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,6 @@ func runAction(cmd *cobra.Command, args []string) error {
385385
if isDetached {
386386
return
387387
}
388-
if err := netManager.CleanupNetworking(ctx, c); err != nil {
389-
log.L.WithError(err).Warnf("failed to clean up container networking")
390-
}
391388
if err := container.RemoveContainer(ctx, c, createOpt.GOptions, true, true, client); err != nil {
392389
log.L.WithError(err).Warnf("failed to remove container %s", id)
393390
}

0 commit comments

Comments
 (0)