dockerÔõôǿÖÆɾ³ý¾µÏñ
Ç¿ÖÆɾ³ý docker ¾µÏñ°ì·¨£º¼ì²é¾µÏñʹÓÃÇéÐÎ×èÖ¹²¢É¾³ýʹÓþµÏñµÄÈÝÆ÷Ö´ÐÐ docker rmi -f Ç¿ÖÆɾ³ý¾µÏñÑéÖ¤¾µÏñÒÑɾ³ý
ÔõÑùÇ¿ÖÆɾ³ý Docker ¾µÏñ
Ç¿ÖÆɾ³ý Docker ¾µÏñ¿ÉÒÔͨ¹ýÒÔÏ°취ʵÏÖ£º
1. ¼ì²é¾µÏñÊÇ·ñÕýÔÚʹÓÃ
ÔÚɾ³ý¾µÏñ֮ǰ£¬ÇëÈ·±£ËüûÓб»ÈκÎÕýÔÚÔËÐеÄÈÝÆ÷»òЧÀÍʹÓá£Ê¹ÓÃÒÔÏÂÏÂÁî¼ì²é¾µÏñµÄʹÓÃÇéÐΣº
docker image inspect
µÇ¼ºó¸´ÖÆ
ÈôÊǾµÏñÕýÔÚʹÓã¬Äú½«¿´µ½Ò»ÌõÐÂÎÅ£¬Ö¸³öËüÕýÔÚ±»ÈÝÆ÷ÒýÓá£
2. ×èÖ¹²¢É¾³ýÈÝÆ÷
ÈôÊǾµÏñÕýÔÚʹÓã¬Çë×èÖ¹²¢É¾³ýËùÓÐʹÓÃËü²¢ÖÕÖ¹ËùÓÐÒÀÀµËüµÄЧÀ͵ÄÈÝÆ÷¡£
¹ØÓÚÿ¸öʹÓøþµÏñµÄÈÝÆ÷£¬Ê¹ÓÃÒÔÏÂÏÂÁ
docker stop docker rm
µÇ¼ºó¸´ÖÆ
3. Ç¿ÖÆɾ³ý¾µÏñ
Ö´ÐÐÒÔÏÂÏÂÁîÇ¿ÖÆɾ³ý¾µÏñ£º
docker rmi -f
µÇ¼ºó¸´ÖÆ
-f£¨–force£©Ñ¡ÏîÈƹýÈκμì²é£¬Ç¿ÖÆɾ³ý¾µÏñ¡£
4. Ñé֤ɾ³ý
ʹÓÃÒÔÏÂÏÂÁîÑéÖ¤¾µÏñÊÇ·ñÒÑɾ³ý£º
docker images
µÇ¼ºó¸´ÖÆ
ÈôÊǾµÏñÒÑÀÖ³Éɾ³ý£¬Ëü½«²»ÔÙ·ºÆðÔÚÁбíÖС£
ÒÔÉϾÍÊÇdockerÔõôǿÖÆɾ³ý¾µÏñµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡