Docker container network issue

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?

What do you mean by “iptables is running”? How do you disable it? iptables is required by Docker. Firewalls managing iptables rules can be incompatible with Docker

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.