Techiio-author
Started by Sudeshna BoseJul 22, 2021

Open
how docker container communicate with each other?

7 VIEWES 2 LIKES 0 DISLIKES SHARE
2 LIKES 0 DISLIKES 7 VIEWES SHARE

Can anyone help me to answer this question?

1 Replies

Techiio-commentatorErik Lian replied a year ago2 likes0 dislikes

easiest way: link both the container with each other using the below command.

docker run -p 8080:8080 --name container1 --link backend exampleimage:latest

Abhishek Jalan
The --link command is deprecated and shouldn't be used anymore... network layer is the way to go.
You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance