dockerÔõô²é¾µÏñ°æ±¾
ÒªÉó²é docker ¾µÏñ°æ±¾£¬ÇëÖ´ÐÐÒÔϲÙ×÷£ºÁгö¾µÏñ°æ±¾£ºÔËÐÐ docker image list ÏÂÁî¡£Éó²éÌض¨¾µÏñÏêϸÐÅÏ¢£ºÊ¹Óà docker image inspect ÏÂÁî²¢²éÕÒ repodigests ×ֶΡ£²éÕÒ°æ±¾×ֶΣº¾µÏñ°æ±¾ÊÇ repodigests ¹þϣֵĩβµÄ×Ö·û´®¡£
ÔõÑùÉó²é Docker ¾µÏñ°æ±¾
ÒªÉó²é Docker ¾µÏñ°æ±¾£¬¿ÉÒÔͨ¹ýÒÔÏ°취²Ù×÷£º
1. Áгö¾µÏñ
ÔËÐÐ docker image list ÏÂÁîÁгöËùÓÐÍâµØ¾µÏñ¡£´ËÏÂÁÏÔʾÿ¸ö¾µÏñµÄÃû³Æ¡¢°æ±¾ºÍ¾Þϸ¡£
2. Éó²éÌض¨¾µÏñµÄÏêϸÐÅÏ¢
ÒªÉó²éÌض¨¾µÏñµÄÏêϸÐÅÏ¢£¬ÇëʹÓà docker image inspect ÏÂÁî¡£ÀýÈ磬ҪÉó²éÃûΪ “my-image” µÄ¾µÏñµÄÏêϸÐÅÏ¢£¬ÇëÔËÐÐÒÔÏÂÏÂÁ
docker image inspect my-image
µÇ¼ºó¸´ÖÆ
3. ²éÕÒ°æ±¾×Ö¶Î
ÔÚÊä³öÖУ¬²éÕÒ “RepoDigests” ×ֶΡ£¸Ã×ֶν«°üÀ¨Ò»¸ö»ò¶à¸ö¾µÏñ°æ±¾¹þÏ£¡£ÀýÈ磺
"RepoDigests": [ "my-registry/my-image@sha256:1234567890abcdef..." ]
µÇ¼ºó¸´ÖÆ
¾µÏñ°æ±¾ÊǹþϣֵĩβµÄ×Ö·û´®¡£ÀýÈ磬ÔÚ±¾ÀýÖУ¬¾µÏñ°æ±¾Îª “1234567890abcdef…”¡£
ÒÔÉϾÍÊÇdockerÔõô²é¾µÏñ°æ±¾µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡