dockerÔõôɾ³ýËùÓоµÏñ
ʹÓÃÏÂÁî docker rmi -f $(docker images -a -q) ¿Éɾ³ý docker ÖÐËùÓоµÏñ¡£´ËÏÂÁîÖ´ÐÐÒÔϲÙ×÷£º»ñÈ¡ËùÓоµÏñµÄ id ÁÐ±í£¨°üÀ¨ÕýÔÚʹÓõľµÏñ£©¡£Ç¿ÖÆɾ³ýÕâЩ¾µÏñ¡£
ÔõÑùɾ³ý Docker ÖеÄËùÓоµÏñ
ʹÓÃÒÔÏÂÏÂÁî¿ÉÒÔɾ³ý Docker ÖеÄËùÓоµÏñ£º
docker rmi -f $(docker images -a -q)
µÇ¼ºó¸´ÖÆ
ÏÂÁîÏê½â£º
docker rmi -f: ɾ³ý Docker ¾µÏñ¡£-f Ñ¡ÏîÇ¿ÖÆɾ³ý£¬×ÝÈ»¾µÏñÕýÔÚʹÓá£
$(docker images -a -q): »ñÈ¡ËùÓÐÍâµØ¾µÏñµÄ ID ÁÐ±í¡£-a Ñ¡ÏîÏÔʾËùÓоµÏñ£¬°üÀ¨ÒÑ×èÖ¹µÄ¾µÏñ¡£-q Ñ¡Ïî½öÊä³ö¾µÏñ ID£¬¶ø²»ÊÇÏêϸÐÅÏ¢¡£
Ö´Ðа취£º
·¿ªÖն˻òÏÂÁîÌáÐÑ·û¡£
Õ³ÌùÉÏÊöÏÂÁî¡£
°´ Enter ¼üÖ´ÐÐÏÂÁî¡£
×¢ÖØ£º
¸ÃÏÂÁɾ³ýËùÓÐ Docker ¾µÏñ£¬°üÀ¨»ù±¾¾µÏñºÍÓû§½¨ÉèµÄ¾µÏñ¡£
½¨ÒéÔÚÖ´ÐиÃÏÂÁî֮ǰÏȱ¸·ÝÖ÷ÒªµÄ¾µÏñ¡£
ÈôÊÇÓöµ½ “permission denied” ¹ýʧ£¬ÇëÈ·±£ÄúÓµÓÐ root »òÖÎÀíԱȨÏÞ¡£
ÒÔÉϾÍÊÇdockerÔõôɾ³ýËùÓоµÏñµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡