Fixed : “docker0: iptables: No chain/target/match by that name”

When i tried to launch a container, docker gave me this error

Reason : iptables rules which were inserted during docker restart were removed while i restarted iptables.

Fix : You can fix this by restarting docker service, it will insert the required rules to iptables .

On Centos7

Restart docker service

Install iptables-services

And then enable the service using systemd:

Now you can save the rules

 

 

On Centos6 ,

Restart docker using

Now save iptables rules using command

Leave a Reply

Your email address will not be published. Required fields are marked *