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 -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -