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

Linux vanilla kernel on QEMU and networking with eth0 -

rdbms - what exactly the undo information lives in oracle? -

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