Hi All ,
I am new to docker. I am trying to run docker container on linux machine.
Docker service is running.I am able to start the container with “docker-compose up -d ” command.
So far everything works fine.
Now when I run any service which makes entries in iptables , Container stops working.
I see below errors…
"Creating network “test_backend” with the default driver
Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-24d7aa7869f4 -j RETURN: iptables: No chain/target/match by that name.
(exit status 1)) "
i run command “docker network ls” , And i could see that its deleting the network created by docker container.
When i run below set of command manually, to make container up and running.
systemctl stop docker
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
systemctl start docker
How do i fix this issue.
This is how i configured the networks in the docker-compose.yml file (edited other entries)