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.
446dc291f6babb356a8b110cb8e71663e175ff5853075a7b7d3fbc24f66b42f9
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 \
-e METRICS_RETENTION=720h
–publish 5443:443
–volumes-from pmm-data
–name pmm-server
–net host --ip 10.100.110.21
-v /etc/pmm-certs
percona/pmm-server:2
WARNING: Published ports are discarded when using host network mode
cd05df58a4637e99b4fc43b397f8d5b0f6524211bb9f9d0f6c46fd81daeac9d8
docker: Error response from daemon: user specified IP address is supported on user defined networks only.