Iptables rule-set so that a docker container can access a service on a host IP

Container communicates with host using docker0 interface. To allow traffic from container add:

-A INPUT -i docker0 -j ACCEPT