linuxÔõôװÖÃdocker
ÔõÑùÔÚ linux ÉÏ×°Öà docker£¿°ì·¨ÈçÏ£º¼ì²éÏȾöÌõ¼þ£ºÄں˰汾 3.10+¡¢ram ¡Ý 2gb¡¢ÎȹÌÍøÂç¡£×°ÖÃÒÀÀµÏubuntu/debian£ºapt-get install apt-transport-https…£»centos/red hat£ºyum install yum-utils…Ìí¼Ó docker ¹Ù·½¿ÍÕ»£ºubuntu/debian£ºcurl… | apt-key add -£»centos/red hat£ºyum-config-manager –add-
ÔõÑùÔÚ Linux ÉÏ×°Öà Docker
µÚÒ»²½£º¼ì²éÏȾöÌõ¼þ
Linux Äں˰汾 3.10 »ò¸ü¸ß°æ±¾
ÖÁÉÙ 2GB µÄ RAM
Îȹ̵Ļ¥ÁªÍøÅþÁ¬
µÚ¶þ²½£º×°Öà Docker ÒÀÀµÏî
Ubuntu/Debian£º
sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
µÇ¼ºó¸´ÖÆ
CentOS/Red Hat£º
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
µÇ¼ºó¸´ÖÆ
µÚÈý²½£ºÌí¼Ó Docker ¹Ù·½¿ÍÕ»
Ubuntu/Debian£º
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
µÇ¼ºó¸´ÖÆ
CentOS/Red Hat£º
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
µÇ¼ºó¸´ÖÆ
µÚËIJ½£º×°Öà Docker
Ubuntu/Debian£º
sudo apt-get update sudo apt-get install docker-ce
µÇ¼ºó¸´ÖÆ
CentOS/Red Hat£º
sudo yum install docker-ce
µÇ¼ºó¸´ÖÆ
µÚÎå²½£ºÆô¶¯ Docker
Ubuntu/Debian£º
sudo systemctl start docker
µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ
CentOS/Red Hat£º
sudo systemctl start docker
µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ
µÚÁù²½£ºÑé֤װÖÃ
ÔËÐÐÒÔÏÂÏÂÁî¼ì²é Docker ÊÇ·ñÒÑÀÖ³É×°Öãº
docker run hello-world
µÇ¼ºó¸´ÖÆ
ÈôÊÇ¿´µ½ÀàËÆÓÚÒÔÏÂÄÚÈݵÄÊä³ö£¬ÔòÌåÏÖ Docker ÒÑÀÖ³É×°Öãº
Hello from Docker! This message shows that your installation appears to be working correctly.
µÇ¼ºó¸´ÖÆ
ÒÔÉϾÍÊÇlinuxÔõôװÖÃdockerµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡