dockerÔõôÀëÏß×°ÖþµÏñ
ÀëÏß×°Öà docker ¾µÏñÐèÒªÒÔÏ°취£º1. »ñÈ¡¾µÏñ tar Îļþ£»2. µ¼³ö¾µÏñÎļþ£»3. ´«Êä¾µÏñÎļþ£»4. µ¼Èë¾µÏñÎļþ£»5. ÑéÖ¤¾µÏñ×°Öá£
Docker ÀëÏß×°ÖþµÏñ
ÎÊÌ⣺ÔõÑùÀëÏß×°Öà Docker ¾µÏñ£¿
ÃÕµ×£º
ÀëÏß×°Öà Docker ¾µÏñÐèÒªÒÔÏ°취£º
1. »ñÈ¡¾µÏñÎļþ (TAR Îļþ)
´Ó Docker ¾µÏñ¿ÍÕ»ÏÂÔؾµÏñ TAR Îļþ£¬ÀýÈç docker pull nginx¡£
È·±£ÄúÒÑÅþÁ¬µ½ Internet£¬²¢ÇÒ Docker ÊØ»¤³ÌÐòÕýÔÚÔËÐС£
2. µ¼³ö¾µÏñÎļþ
µ¼³ö¾µÏñΪ TAR Îļþ£¬Ê¹ÓÃÒÔÏÂÏÂÁ
docker save nginx > nginx-image.tar
µÇ¼ºó¸´ÖÆ
3. ´«Êä¾µÏñÎļþ
½« TAR Îļþ´«Êäµ½ÀëÏß»úе¡£¿ÉÒÔʹÓÃÎïÀí½éÖÊ£¨ÀýÈç USB Çý¶¯Æ÷£©»òÍøÂç´«Ê䣨ÀýÈç FTP »ò SSH£©¡£
4. µ¼Èë¾µÏñÎļþ
ÔÚÀëÏß»úеÉÏ£¬Ê¹ÓÃÒÔÏÂÏÂÁîµ¼Èë¾µÏñ£º
docker load
µÇ¼ºó¸´ÖÆ
5. ÑéÖ¤¾µÏñ×°ÖÃ
ͨ¹ýÔËÐÐ docker images ÏÂÁÑéÖ¤¾µÏñÊÇ·ñÒÑÀÖ³É×°Öá£
×¢£º
ÈôÊÇÄ¿µÄ»úеÉÐδװÖà Docker£¬ÇëÔÚµ¼Èë¾µÏñ֮ǰװÖÃËü¡£
ÔÚÀëÏß»úеÉÏÔËÐÐ Docker ÊØ»¤³ÌÐòʱ£¬¿ÉÄÜÐèҪʹÓà –insecure-registry ±ê¼Ç£¬ÒÔ±ã»á¼ûÍâµØµ¼ÈëµÄ¾µÏñ¡£
ÒÔÉϾÍÊÇdockerÔõôÀëÏß×°ÖþµÏñµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡