![]() But connection between containers attached to two different subnets is not possible. nt01 and nt02 can connect with each other, whereas nt03 and nt04 can connect. docker exec nt01 ping 172.17.0.19Ĭlearly, these two are two differnt subnets/networks even though running on the same host. ![]() Now, lets examine if they can interconnect,Ĭreate a table with the ips on your host. ![]() Launch two containers nt03 and nt04 in mynet bridge network docker container run -idt -name nt03 -net mynet alpine shĭocker container run -idt -name nt04 -net mynet alpine sh Launch two containers nt01 and nt02 in default bridge network docker container run -idt -name nt01 alpine shĭocker container run -idt -name nt02 alpine sh Launching containers in different bridges ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |