dockerÔõôÍ˳öÈÝÆ÷
Í˳ö docker ÈÝÆ÷µÄËÄÖÖÒªÁ죺ÈÝÆ÷ÖÕ¶ËÖÐʹÓà ctrl+d ¿ì½Ý¼üÈÝÆ÷ÖÕ¶ËÖÐÊäÈë exit ÏÂÁîËÞÖ÷»úÖÕ¶ËÖÐʹÓà docker stop ÏÂÁîËÞÖ÷»úÖÕ¶ËÖÐʹÓà docker kill ÏÂÁǿÖÆÍ˳ö£©
ÔõÑùÍ˳ö Docker ÈÝÆ÷
Í˳ö Docker ÈÝÆ÷ÓÐÒÔÏÂÒªÁ죺
1. ʹÓà Ctrl+D ¿ì½Ý¼ü
ÔÚÈÝÆ÷ÖÕ¶ËÖУ¬°´ Ctrl+D ¿ì½Ý¼ü¡£Õâ»á·¢ËÍÒ»¸ö EOF£¨Îļþβ£©ÐźŸøÈÝÆ÷£¬´Ó¶øÍ˳öÈÝÆ÷¡£
2. ʹÓà exit ÏÂÁî
ÔÚÈÝÆ÷ÖÕ¶ËÖУ¬ÊäÈë exit ÏÂÁî¡£ÕâÒ²»á·¢ËÍÒ»¸ö EOF ÐźŸøÈÝÆ÷£¬´Ó¶øÍ˳öÈÝÆ÷¡£
3. ʹÓà docker stop ÏÂÁî
ÔÚËÞÖ÷»úµÄÖÕ¶ËÖУ¬ÔËÐÐÒÔÏÂÏÂÁîÀ´×èÖ¹ÈÝÆ÷£º
docker stop <container_name></container_name>
µÇ¼ºó¸´ÖÆ
ÆäÖÐ ÊÇÒª×èÖ¹µÄÈÝÆ÷µÄÃû³Æ¡£Õâ»áÓÅÑŵعرÕÈÝÆ÷ÖеÄËùÓÐÀú³Ì£¬È»ÍËÈ´³öÈÝÆ÷¡£
4. ʹÓà docker kill ÏÂÁî
ÈôÊÇ docker stop ÏÂÁî²»Æð×÷Ó㬿ÉÒÔʹÓà docker kill ÏÂÁîÀ´Ç¿ÖÆÍ˳öÈÝÆ÷¡£ÔÚËÞÖ÷»úµÄÖÕ¶ËÖУ¬ÔËÐÐÒÔÏÂÏÂÁ
docker kill <container_name></container_name>
µÇ¼ºó¸´ÖÆ
Õâ»áÁ¬Ã¦ÖÕÖ¹ÈÝÆ÷ÖеÄËùÓÐÀú³Ì£¬²¢Í˳öÈÝÆ÷¡£
ÒÔÉϾÍÊÇdockerÔõôÍ˳öÈÝÆ÷µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡