Hi @tmccann,
A docker container by default has a separate network bridge from the host. So when you try to access port 6000 on the localhost from inside the container you get ECONNREFUSED as no application is listening on that port inside the container. There are two ways you can get around this.
-
Use the host networking in the container - simply pass
--network hostto the docker run command. -
Call the host with its IP address. This is not as straight forward as using the host network stack. You can follow the steps in this blog post to get the host IP inside your container.