mysql - How best to connect containers within Docker -


do need use --link command link containers 1 or can ping ip of 2nd container 1st container.

example: container 1 running mysql (tcp 3306) : ip 10.0.0.7 container 2 running lamp : ip 10.0.0.8

can 0.8 not directly connect 0.7 on same bridge ?

thanks once again help

regards

hareem haque

it depends on network topology.

if choose "secure" setup --icc=false have use --link dockers communicate.

documentation @ [1] explains it.

link: [1] - https://docs.docker.com/articles/networking/#communication-between-containers

regards paolo


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -