Network connection issue due to Docker

I’m setting up Docker(v19.03.8) Ubuntu 18.04 image on my Ubuntu 18.04 host machine. I’m not able to connect to net from host machine as well as from container. Hence, I’ve created /etc/docker/daemon.json with following dns entries.

{
    "dns": ["10.1.2.3", "8.8.8.8"],  
}

Now internet is working fine inside docker container. But not on host machine yet. So I have following bridge entries;

{
    "dns": ["10.1.2.3", "8.8.8.8"],
    "bip": "192.168.1.5/24",
    "fixed-cidr": "192.168.1.5/25",
    "fixed-cidr-v6": "2001:db8::/64"   
}

But it didn’t do any magic.

My need is to connect to internet on both machines (host & container) directly and when I connect to VPN as well. Once the setup is done, I want my team to follow the instructions to setup docker image on their PC without knowing much about network settings and docker.

I’ve already tried many answers suggested on this forum. But they didn’t work.

Source: StackOverflow