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

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

thanks a lot you saved me after a whole day of searching

tawfikelkahlaoui