dockerÍøÂçÅþÁ¬Ôõô×èÖ¹
Òª×èÖ¹ docker ÍøÂçÅþÁ¬£¬Çëƾ֤ÒÔÏ°취²Ù×÷£º1. È·¶¨Òª×èÖ¹µÄÍøÂçÃû³Æ£»2. ʹÓà docker network stop ÏÂÁî×èÖ¹ÍøÂ磻3. ¼ì²é×èֹ״̬£¬ÒÔÑéÖ¤ÍøÂçÒÑ×èÖ¹¡£
ÔõÑù×èÖ¹ Docker ÍøÂçÅþÁ¬
×èÖ¹ Docker ÍøÂçÅþÁ¬µÄ°ì·¨ÈçÏ£º
1. È·¶¨Òª×èÖ¹µÄÍøÂçÃû³Æ
Òª×èÖ¹µÄÍøÂçµÄÃû³Æ¿ÉÒÔͨ¹ýÔËÐÐÒÔÏÂÏÂÁîÀ´È·¶¨£º
docker network ls
µÇ¼ºó¸´ÖÆ
Õ⽫ÏÔʾËùÓÐÔ˶¯µÄ Docker ÍøÂç¡£
2. ʹÓà stop ÏÂÁî
Òª×èÖ¹Ìض¨µÄÍøÂ磬ÇëʹÓÃÒÔÏÂÏÂÁÆäÖÐ ÊÇÒª×èÖ¹µÄÍøÂçµÄÃû³Æ£º
docker network stop <network name></network>
µÇ¼ºó¸´ÖÆ
3. ¼ì²é×èֹ״̬
ÒªÑéÖ¤ÍøÂçÊÇ·ñÒÑ×èÖ¹£¬ÇëÔÙ´ÎÔËÐÐ docker network ls ÏÂÁî¡£×èÖ¹µÄÍøÂ罫²»ÔÙ·ºÆðÔÚÁбíÖС£
ʾÀý
¼ÙÉèÎÒÃÇÒª×èÖ¹ÃûΪ “my-network” µÄÍøÂ磺
È·¶¨ÍøÂçÃû³Æ£ºdocker network ls
×èÖ¹ÍøÂ磺docker network stop my-network
¼ì²é×èֹ״̬£ºdocker network ls
ÀÖ³É×èÖ¹ÍøÂçºó£¬¸ÃÍøÂ罫²»ÔÙ¿ÉÓã¬Æä¹ØÁªÈÝÆ÷½«Ê§È¥ÅþÁ¬¡£
ÒÔÉϾÍÊÇdockerÍøÂçÅþÁ¬Ôõô×èÖ¹µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡