Why does podman throws errors like"Error deleting network" and "Error while removing pod" for dual-stacked networks while exiting from the containers ?

Solution Verified - Updated -

Issue

  • Getting below errors after exiting from the container

     ERRO[0004] Error deleting network: running [/usr/sbin/ip6tables -t nat -D POSTROUTING -s fd05:75e:25ca:1089::4/64 -j CNI-78f6fc7a0ab09e01bc092da8 -m comment --comment name: "dualstack" id: "17882a832879b1eb68a3f5e2b30210096da6c35d537c5347a12087543409dc48" --wait]: exit status 1: iptables: Bad rule (does a matching rule exist in that chain?). 
    
     ERRO[0004] Error while removing pod from CNI network "dualstack": running [/usr/sbin/ip6tables -t nat -D POSTROUTING -s fd05:75e:25ca:1089::4/64 -j CNI-78f6fc7a0ab09e01bc092da8 -m comment --comment name: "dualstack" id: "17882a832879b1eb68a3f5e2b30210096da6c35d537c5347a12087543409dc48" --wait]: exit status 1: iptables: Bad rule (does a matching rule exist in that chain?). 
    

Environment

  • RHEL 8
  • Podman-2.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content