Docker networking basics | connect ECONNREFUSED 127.0.0.1:xxxx | Part 1

Опубликовано: 16 Октябрь 2024
на канале: bottletyre
1,847
11

In this Video, I have shown the basic network bridge which is created for communicating between the containers. Without the default bridge, the containers cannot communicate each other.

The first container has expressjs server, and the other container has json-server which acts as API.

When expressjs makes an API request to the container, The CONNREFUSED error appeared & was not able to progress further.


Below are the commands, which will be useful:
-------------------------------------------------------------------------

docker network connect network-name container-name
docker network ls
docker network inspect network-id


#docker #networking #CONNREFUSED #connection #communication