Skip to content

Commit

Permalink
fix: network cleanup called twice
Browse files Browse the repository at this point in the history
Signed-off-by: Shubharanshu Mahapatra <[email protected]>
  • Loading branch information
Shubhranshu153 committed Feb 13, 2025
1 parent cb915f6 commit 974bc84
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/nerdctl/container/container_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,6 @@ func runAction(cmd *cobra.Command, args []string) error {
if isDetached {
return
}
if err := netManager.CleanupNetworking(ctx, c); err != nil {
log.L.WithError(err).Warnf("failed to clean up container networking")
}
if err := container.RemoveContainer(ctx, c, createOpt.GOptions, true, true, client); err != nil {
log.L.WithError(err).Warnf("failed to remove container %s", id)
}
Expand Down

0 comments on commit 974bc84

Please sign in to comment.