Docker Community Forums

Share and learn in the Docker community.

Docker container unable to curl docker host with ip or dns

I have a container named jenkins running in custom bridge network. It is able to communicate with internet and other containers in same network but it can not curl its docker host ip. It can even ping IP of docker host but only http and https to host IP does not work.

I see that I have to allow connection using iptables. Any idea where should I add rule in iptables? My guess is to add rule in DOCKER-USER chain and source ip as (network range for custom bridges).