Hello ,
I have an Ubuntu 20 base machine named gateway, which is in the public network, and another Ubuntu 20 machine named master node, which is in a private subnet without public access. I am running Hadoop services on the master node, and through the gateway node, we are accessing the web URLs using iptables. I have installed Docker on the gateway node, pulled the jupyter/base-notebook image, and ran it inside a Docker container. However, the internet does not work inside the container. I figured out that when I disable iptables, the internet starts working.
Can you help me enable internet access inside the Docker container while iptables is running?