tutorialworks / comments

Comments on our articles
https://www.tutorialworks.com
4 stars 1 forks source link

container-networking/ #3

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

How To Communicate Between Docker Containers - Tutorial Works

Understand how a Docker container can talk to its container friends, by setting up a network. Includes a real example.

https://www.tutorialworks.com/container-networking/

hosseinnedaee commented 3 years ago

thanks

CammyTetehJr commented 3 years ago

Thanks for the explanation

sohojmanush commented 2 years ago

What happens when all containers are in same macvlan netwrok? Can they communicate with each other,or the traffic needs to go through the router ?

loke9999 commented 2 years ago

Thanks for sharing. Helps to quickly understand docker networking.

fer-ri commented 2 years ago

Thanks. Good explanaation :+1:

stardustman commented 2 years ago

I have a question: In docker-compose, I run a mongodb with user defined network named "backend" which driver is "bridge", I also run a container app1 which network_mode=host. How to access the mongodb in app1? Thanks a lot.

benayat commented 2 years ago

I have two containers running on the same bridge network. I exposed port 9200 on one(elasticsearch), and the other one is just busybox. no matter what I do, I always get the same error: command: wget -q -O - :9200 error: "wget: can't connect to remote host (172.23.0.3): Connection refused"

any idea why this could happen? I run it with docker desktop/wsl2 backend

ntcho commented 2 years ago

Great article! :+1:

nabilou01 commented 2 years ago

crystal clear :+1:

giovannifarina commented 2 years ago

Thank you!

loke9999 commented 2 years ago

Thank you...

deokyongsong commented 2 years ago

Thanks.

alexandrejev commented 2 years ago

Thank you!

Bezaeel commented 2 years ago

Hello, great write up; I love the simplicity of terms. Thank you so much. My question is I have 2 containers with different network (db-network, api-network). How do I connect my api to my db container? Thanks again

rafishaik1 commented 2 years ago

thank you for the nice explanation.

habibi03336 commented 2 years ago

Thanks alot!