My server was hung, and I restarted it, but ran into this error. I noticed its attempting to create a chain on 172.17.0.2 instead of 172.17.0.1 which is assigned to Docker0 Interface. Is that expected?
I’ve tried removing it, running it again, creating the chain manually.
docker: Error response from daemon: driver failed programming external connectivity on endpoint pmm-server (c0375155d0629960a1462cd5af8a7b7af051a3b36cca8c14425f25cbd36fc876): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 5443 -j DNAT --to-destination 172.17.0.2:443 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).
If I add an IP say, 172.17.0.2 it returns:
docker run --detach --restart always \
–net host --ip 10.100.110.21
WARNING: Published ports are discarded when using host network mode
docker: Error response from daemon: user specified IP address is supported on user defined networks only.