dockerÈÝÆ÷ÔõôÀÈ¡¾µÏñ
ÒªÀÈ¡ docker ¾µÏñ£¬ÇëʹÓÃÒÔÏ°취£ºµÇ¼ docker hubʹÓà “docker pull [¾µÏñÃû³Æ]” ÏÂÁîÀÈ¡¾µÏñ¿ÉÑ¡£ºÖ¸¶¨¾µÏñ°æ±¾ÒÔÀÈ¡Ìض¨°æ±¾Ê¹Óà “docker images” ÏÂÁî¼ì²éÒÑÀÈ¡µÄ¾µÏñ
ÔõÑùÀÈ¡ Docker ¾µÏñ
Docker ¾µÏñÊÇ°üÀ¨Ó¦ÓóÌÐò¼°ÆäÒÀÀµÏîµÄ´ò°üÎļþ£¬Êǽ¨ÉèºÍÔËÐÐÈÝÆ÷µÄ»ù´¡¡£ÒªÀÈ¡¾µÏñ£¬ÄúÐèҪʹÓà Docker ÏÂÁîÐнçÃæ (CLI)¡£
°ì·¨£º
µÇ¼ Docker Hub£º
ÈôÊÇÄúÉÐδµÇ¼ Docker Hub£¬ÇëÖ´ÐÐÒÔÏÂÏÂÁdocker login¡£ÊäÈëÄúµÄ Docker ID ºÍÃÜÂë¡£
ÀÈ¡¾µÏñ£º
ÒªÀÈ¡¾µÏñ£¬ÇëʹÓÃÒÔÏÂÏÂÁ
docker pull [¾µÏñÃû³Æ]
µÇ¼ºó¸´ÖÆ
ÀýÈ磬ҪÀÈ¡ Nginx ¾µÏñ£¬ÇëÖ´ÐУºdocker pull nginx¡£
Ö¸¶¨¾µÏñ°æ±¾£º
ĬÈÏÇéÐÎÏ£¬Docker ½«ÀÈ¡×îа汾µÄ¾µÏñ¡£Äú¿ÉÒÔͨ¹ýÖ¸¶¨±êÇ©À´ÀÈ¡Ìض¨°æ±¾£¬ÀýÈ磺docker pull nginx:1.21¡£
¼ì²é¾µÏñ£º
ÒªÉó²éÒÑÀÈ¡µÄ¾µÏñ£¬ÇëÖ´ÐÐÒÔÏÂÏÂÁdocker images¡£
ÆäËûÑ¡Ï
Ö¸¶¨¾µÏñ¿ÍÕ»£º
Äú¿ÉÒÔͨ¹ýÖ¸¶¨¾µÏñ¿ÍÕ»À´Àȡ˽ÓоµÏñ£¬ÀýÈ磺docker pull my-registry.example.com/my-image¡£
ʹÓÃÓÖÃû£º
Äú¿ÉÒÔʹÓÃÓÖÃûÀ´¼ò»¯ÀÈ¡ÏÂÁÀýÈ磺docker pull nginx:latest ¿ÉÒÔÌ滻Ϊ docker pull nginx¡£
ÉèÖþµÏñ¼ÓËÙÆ÷£º
ÈôÊÇÄúÓöµ½ÀÈ¡¾µÏñ»ºÂýµÄÎÊÌ⣬¿ÉÒÔʹÓþµÏñ¼ÓËÙÆ÷À´Ìá¸ßËÙÂÊ¡£ÏêϸÉèÖð취Çë²Î¿¼ Docker Îĵµ¡£
ÒÔÉϾÍÊÇdockerÈÝÆ÷ÔõôÀÈ¡¾µÏñµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡