I am trying to launch the browser using puppeteer on docker container.
However, when I am trying load the browser by hitting the API, I am seeing the following error

localhost:3000 is my client running locally. I am not sure if docker can access this address. I am thinking maybe this could be the reason for the connection failure. Please correct me if I am wrong.
When I try the above scenario without docker, it is working fine, I am able to see the puppeteer opening chromium browsers and show the page. To make it work on the docker container, what should I do?