dockerÔõôɾ³ý±êÇ©¾µÏñ
Ҫɾ³ý docker ¾µÏñ±êÇ©£¬Çëƾ֤ÒÔÏ°취²Ù×÷£ºµÇ¼ docker ×¢²á±í¡£Áгö¾µÏñ±êÇ©¡£Ê¹Óà docker image tag ÏÂÁîɾ³ý±êÇ©£¬Óï·¨£ºdocker image tag –rm ¡£ÑéÖ¤±êÇ©ÒÑɾ³ý¡£
ÔõÑùɾ³ý Docker ¾µÏñÖеıêÇ©
Docker ¾µÏñÓɲã×é³É£¬Ã¿¸ö²ã¶¼¿ÉÒÔ¸½¼Ó±êÇ©¡£±êÇ©ÓÃÓÚʹ¾µÏñ¸üÈÝÒ×±»Ê¶±ðºÍÖÎÀí¡£È»¶ø£¬ÔÚijЩÇéÐÎÏ£¬Äú¿ÉÄÜÐèҪɾ³ý¾µÏñÖеıêÇ©¡£
ɾ³ý Docker ¾µÏñ±êÇ©µÄ°ì·¨£º
µÇ¼µ½ Docker ×¢²á±í£º
docker login
µÇ¼ºó¸´ÖÆ
Áгö¾µÏñ±êÇ©£º
ʹÓà docker image inspect ÏÂÁîÁгö¾µÏñµÄ±êÇ©£º
docker image inspect <image-name></image-name>
µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ
ɾ³ý±êÇ©£º
ʹÓà docker image tag ÏÂÁîɾ³ý±êÇ©£º
docker image tag <image-name><new-image-name> --rm <tag></tag></new-image-name></image-name>
µÇ¼ºó¸´ÖÆ
ÆäÖУº
ÊÇÒªÐ޸ĵľµÏñÃû³Æ¡£
ÊǸüкóµÄ¾µÏñÃû³Æ£¨¿ÉÒÔÑ¡ÔñÓëÔʼÃû³ÆÏàͬ£©¡£
ÊÇҪɾ³ýµÄ±êÇ©¡£
ÀýÈ磬Ҫɾ³ý¾µÏñ my-image ÖÐµÄ prod ±êÇ©£º
docker image tag my-image my-image --rm prod
µÇ¼ºó¸´ÖÆ
ÑéÖ¤±êÇ©ÒÑɾ³ý£º
ʹÓà docker image inspect ÏÂÁîÑéÖ¤±êÇ©ÒÑɾ³ý£º
docker image inspect <image-name></image-name>
µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ
ÏÖÔÚ£¬±êÇ©½«´Ó¾µÏñÖÐɾ³ý¡£
ÒÔÉϾÍÊÇdockerÔõôɾ³ý±êÇ©¾µÏñµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡