I'm building up a nodejs app which is running in the docker container...
This is the command I used to run the container...
sudo docker run -it --rm -p 3000:6001 --name xxx-running xxx
Execute above command line, got following output..
Running on Locally
AppEnv {
isLocal: true,
app: {},
services: {},
name: 'xxx',
port: 6001,
bind: '0.0.0.0',
urls: [ 'http://localhost:6001' ],
url: 'http://localhost:6001' }
App started on port http://localhost:6001
Since the app will call third party api, so the request module is required. Each time when a request is invoked, I got following error...
{ [Error: connect ECONNREFUSED 192.155.253.83:443]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '192.155.253.83',
port: 443 }
I know maybe it's because of the localhost entry, but how can I change this?