尊龙凯时人生就是搏

docker¹Ù·½Ô´ÎÞ·¨Ê¹ÓõĽâ¾ö²½·¥

docker ¹Ù·½Ô´ÎÞ·¨Ê¹ÓõÄÎÊÌâ¿ÉÒÔͨ¹ýÒÔÏÂÒªÁì½â¾ö£º¼ì²éÍøÂçÅþÁ¬²¢ÊµÑé ping docker.io¡£½« docker ¾µÏñÔ´¸ü¸ÄΪ°¢ÀïÔÆÔ´¡£ÆôÓÃʹÓò»Çå¾²µÄ×¢²á±í¡£Ìí¼Ó docker ¹Ù·½ gpg ÃÜÔ¿¡£ÖØÐÂ×°Öà docker¡£

ÔõÑù½â¾ö Docker ¹Ù·½Ô´ÎÞ·¨Ê¹ÓõÄÎÊÌâ

ÎÊÌ⣺Docker ¹Ù·½Ô´ÎÞ·¨Ê¹ÓÃ

½â¾ö²½·¥£º

1. ¼ì²éÍøÂçÅþÁ¬

  • È·±£ÄúµÄÅÌËã»úÒÑÅþÁ¬µ½ Internet¡£
  • ʵÑé ping docker.io ÒÔ¼ì²éÅþÁ¬ÐÔ¡£

2. ¸ü¸Ä Docker ¾µÏñÔ´

  • ÔÚÄúµÄÖ÷»úÉÏ·­¿ªÒ»¸öÖնˡ£
  • ÔËÐÐÒÔÏÂÏÂÁîÒÔ½« Docker ¾µÏñÔ´¸ü¸ÄΪ°¢ÀïÔÆÔ´£º
sudo vim /etc/docker/daemon.json

µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ

  • Ìí¼ÓÒÔÏ JSON ÉèÖõ½Îļþĩβ£º
{
  "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/"]
}

µÇ¼ºó¸´ÖÆ

  • ÉúÑIJ¢Í˳öÎļþ¡£
  • ÖØÐÂÆô¶¯ Docker ЧÀÍ£º
sudo systemctl restart docker

µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ

3. ÆôÓÃʹÓò»Çå¾²µÄ×¢²á±í

  • ÔÚÄúµÄÖ÷»úÉÏ·­¿ªÒ»¸öÖնˡ£
  • ÔËÐÐÒÔÏÂÏÂÁîÒÔÆôÓÃʹÓò»Çå¾²µÄ×¢²á±í£º
sudo vim /etc/docker/daemon.json

µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ

  • ÏòÎļþÖÐÌí¼ÓÒÔÏ JSON ÉèÖÃÐУº
"insecure-registries": ["docker.io"]

µÇ¼ºó¸´ÖÆ

  • ÉúÑIJ¢Í˳öÎļþ¡£
  • ÖØÐÂÆô¶¯ Docker ЧÀÍ£º
sudo systemctl restart docker

µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ

×¢ÖØ£ºÆôÓÃʹÓò»Çå¾²µÄ×¢²á±í¿ÉÄܻήµÍÄúµÄÇå¾²ÐÔ£¬Òò´ËÇë½öÔÚÐëҪʱʹÓá£

4. Ìí¼Ó Docker ¹Ù·½ GPG ÃÜÔ¿

  • ÔÚÄúµÄÖ÷»úÉÏ·­¿ªÒ»¸öÖնˡ£
  • ÔËÐÐÒÔÏÂÏÂÁîÒÔÌí¼Ó Docker ¹Ù·½ GPG ÃÜÔ¿£º
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

µÇ¼ºó¸´ÖÆ

  • ¸üÐÂÈí¼þ°üÁÐ±í£º
sudo apt-get update

µÇ¼ºó¸´ÖÆ

5. ÖØÐÂ×°Öà Docker

  • ÈôÊÇÉÏÊöÒªÁì¾ùÎÞ·¨½â¾öÎÊÌ⣬Ôò¿ÉÒÔʵÑéÖØÐÂ×°Öà Docker¡£
  • ÔËÐÐÒÔÏÂÏÂÁîÒÔжÔØ Docker£º
sudo apt-get remove docker docker-engine docker.io containerd runc

µÇ¼ºó¸´ÖÆ

  • Ö®ºó£¬Æ¾Ö¤ Docker ¹Ù·½ÎĵµÖØÐÂ×°Öà Docker¡£

ÒÔÉϾÍÊÇdocker¹Ù·½Ô´ÎÞ·¨Ê¹ÓõĽâ¾ö²½·¥µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是搏

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ