Not able to connect docker from host when network change

Hi ,

I am not able to connect to docker container when there is network/ip change from office to home. But the same works with localhost or

I am connecting to VPN to connect to database.

root@1c970ed5cd64:/etc# curl http://localhost:8090/admin/health_check/all
{“health”:“passed”}root@1c970ed5cd64:/etc# curl
curl: (7) Failed to connect to port 8090: Connection refused

When i install docker again everything works fine.