{"id":15661,"date":"2016-03-07T00:38:31","date_gmt":"2016-03-06T16:38:31","guid":{"rendered":"http:\/\/vmcloud.info\/?p=15661"},"modified":"2016-03-07T00:41:34","modified_gmt":"2016-03-06T16:41:34","slug":"%e3%80%90vmcloud%e4%ba%91%e5%b9%b3%e5%8f%b0%e3%80%91%e6%8b%a5%e6%8a%b1docker%ef%bc%88%e4%b8%80%ef%bc%89%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/vmcloud.info\/?p=15661","title":{"rendered":"\u3010VMCloud\u4e91\u5e73\u53f0\u3011\u62e5\u62b1Docker\uff08\u4e00\uff09\u5b89\u88c5"},"content":{"rendered":"<p>VMCloud\u4e91\u5e73\u53f0\u53d1\u5e03\u5230\u73b0\u5728\u5df2\u7ecf\u5386\u53f2\u4e00\u5e74\uff0c\u6309\u7167\u539f\u672c\u8ba1\u5212\uff0c\u7b2c\u4e8c\u6b65\u5e94\u8be5\u662fVMware\u79c1\u6709\u4e91\u5e73\u53f0\u642d\u5efa\uff0c\u4f46\u662f\u5f00\u6e90\u5b9e\u5728\u6765\u5f97\u592a\u8fc7\u51f6\u731b\uff0c\u535a\u4e3b\u8eab\u5728\u6218\u573a\u4e2d\u6df1\u6df1\u7684\u611f\u53d7\u5230\u4e86<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image002.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; margin-right: auto; border-width: 0px;\" title=\"clip_image002\" src=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image002_thumb.jpg\" alt=\"clip_image002\" width=\"549\" height=\"407\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Docker\u6709\u5f88\u591a\u79cd\u5b89\u88c5\u65b9\u5f0f\uff0c\u4f46\u662f\u6211\u63a8\u8350\u4f7f\u7528Ubuntu\uff0c\u56e0\u4e3aDocker\u662f\u5728ubuntu\u73af\u5883\u4e0b\u5f00\u53d1\u7684\uff0c\u6240\u4ee5\u5b89\u88c5\u5305\u6d4b\u8bd5\u6bd4\u8f83\u5145\u5206\uff08\u96be\u5ea6\u7cfb\u65700\uff09\uff0c\u8fd9\u91cc\u7531\u4e8e\u8981\u8ddfZabbix\u3001OpenStack\u7b49\u505a\u6574\u5408\uff0c\u6240\u4ee5\u6211\u9009\u62e9\u5728Azure\u4e0a\u642d\u5efaDocker\uff0c\u8fd9\u4e5f\u662f\u4e3a\u4e86\u5b9e\u73b0\u4e4b\u524d\u5728\u76c6\u76c6\u8001\u5e08\u8bfe\u7a0b\u4e0a\u5439\u8fc7\u7684\u725b\u903c\uff08Microsoft Azure+Windows Azure Stack+Docker\uff09\u7684\u7b2c\u4e00\u6b65\u3002<\/p>\n<p>1\u3001\u521b\u5efa\u4e00\u53f0ubuntu\u865a\u62df\u673a\u6211\u5c31\u4e0d\u591a\u8bf4\u4e86\uff0c\u8fdb\u5165Ubuntu\u865a\u62df\u673a\u540e\uff0c\u4f7f\u7528<\/p>\n<pre># install the backported kernel<\/pre>\n<pre>sudo apt-get update<\/pre>\n<pre>sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring<\/pre>\n<pre># reboot<\/pre>\n<pre>sudo reboot<\/pre>\n<p>\u6765\u8fdb\u884c\u5347\u7ea7\uff08\u8fd9\u662f\u7531\u4e8eLXC\u7684\u4e00\u4e2abug\uff0cDocker\u57283.8\u5185\u6838\u4e0b\u9762\u8fd0\u884c\u6700\u4f73\uff0c\u800cUbuntu\u7684Precise\u7248\u672c\u5185\u7f6e\u7684\u662f3.2\u7248\u672c\u7684\u5185\u6838\uff0c\u8bf7\u6ce8\u610f\u6b64\u64cd\u4f5c\u9700\u8981\u865a\u62df\u673a\u8fde\u63a5\u5916\u7f51\uff09\uff0c\u5347\u7ea7\u5185\u6838\u5bf9\u4e8e\u751f\u4ea7\u73af\u5883\u6765\u8bf4\u662f\u4e00\u4e2a\u5f88\u6709\u98ce\u9669\u7684\u52a8\u4f5c\uff0c\u5efa\u8bae\u5347\u7ea7\u524d\u505a\u597d\u5907\u4efd\u64cd\u4f5c\uff1a<\/p>\n<p><a href=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image004.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"clip_image004\" src=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image004_thumb.jpg\" alt=\"clip_image004\" width=\"466\" height=\"484\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image006.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"clip_image006\" src=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image006_thumb.jpg\" alt=\"clip_image006\" width=\"557\" height=\"403\" border=\"0\" \/><\/a><\/p>\n<p>2\u3001\u63a5\u7740\u6211\u4eec\u9700\u8981\u5c06\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801<\/p>\n<p>sudo apt-key adv &#8211;keyserver keyserver.ubuntu.com &#8211;recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9<\/p>\n<p>\u5c06Docker\u7684Decker\u5e93\u5bc6\u94a5\u8fdb\u884c\u6dfb\u52a0<\/p>\n<p><a href=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image008.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"clip_image008\" src=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image008_thumb.jpg\" alt=\"clip_image008\" width=\"558\" height=\"96\" border=\"0\" \/><\/a><\/p>\n<p>3\u3001\u63a5\u7740\u5c06Docker\u7684\u5e93\u6dfb\u52a0\u5230apt\u6e90\u5217\u8868\u4e2d\u4ee5\u4fbf\u66f4\u65b0\u5e76\u5b89\u88c5lxc-docker\u5305<\/p>\n<pre>sudo sh -c \"echo deb <a href=\"http:\/\/get.docker.io\/ubuntu%20docker%20main\/\">http:\/\/get.docker.io\/ubuntu docker main\\<\/a><\/pre>\n<pre>&gt; \/etc\/apt\/sources.list.d\/docker.list\"<\/pre>\n<pre>sudo apt-get update<\/pre>\n<pre>sudo apt-get install lxc-docker<\/pre>\n<p>\uff08\u5982\u679capt-get update\u6709\u95ee\u9898\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u4f60\u7684\u7f51\u7edc\u65e0\u6cd5\u6b63\u5e38\u83b7\u53d6docker.io\u7684apt\u6e90\uff0c\u90a3\u4e48\u8bf7\u4f7f\u7528\u8fd9\u6761sudo bash -c &#8216;echo &#8220;deb https:\/\/get.docker.com\/ubuntu docker main&#8221; &gt; \/etc\/apt\/sources.list.d\/docker.list&#8217;\uff09<\/p>\n<p><a href=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image010.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"clip_image010\" src=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image010_thumb.jpg\" alt=\"clip_image010\" width=\"558\" height=\"412\" border=\"0\" \/><\/a><\/p>\n<p>4\u3001\u63a5\u7740\u54b1\u4eec\u5c31\u53ef\u4ee5\u6765\u5c1d\u8bd5\u7b2c\u4e00\u4e2a\u955c\u50cf\u8fdb\u884c\u5b89\u88c5\uff08\u6bd4\u5982Ubuntu\uff0c\u7531\u4e8e\u662f\u7b2c\u4e00\u6b21\u90e8\u7f72\u955c\u50cf\uff0c\u6545\u672c\u5730\u662f\u68c0\u7d22\u4e0d\u5230\u7684\uff0c\u6240\u4ee5\u8fd9\u91cc\u4f1a\u5230docker\u5e93\u91cc\u8fdb\u884c\u68c0\u7d22\uff09\uff1a<\/p>\n<pre>sudo docker run -i -t ubuntu \/bin\/bash<\/pre>\n<p><a href=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image012.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"clip_image012\" src=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image012_thumb.jpg\" alt=\"clip_image012\" width=\"557\" height=\"123\" border=\"0\" \/><\/a><\/p>\n<p>5\u3001\u63a5\u7740\u641c\u7d22\u4e0b\u955c\u50cf\uff0c\u6bd4\u5982\uff1asudo <b>docker search tutorial<\/b><\/p>\n<p><a href=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image014.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"clip_image014\" src=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2016\/03\/clip_image014_thumb.jpg\" alt=\"clip_image014\" width=\"558\" height=\"221\" border=\"0\" \/><\/a><\/p>\n<p>\u81f3\u6b64\uff0cDocker\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><a href=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2015\/11\/thumb.png\" rel=\"attachment wp-att-13091\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-13091 aligncenter\" src=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2015\/11\/thumb.png\" alt=\"thumb.png\" width=\"538\" height=\"349\" srcset=\"https:\/\/vmcloud.info\/wp-content\/uploads\/2015\/11\/thumb.png 538w, https:\/\/vmcloud.info\/wp-content\/uploads\/2015\/11\/thumb-300x195.png 300w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VMCloud\u4e91\u5e73\u53f0\u53d1\u5e03\u5230\u73b0\u5728\u5df2\u7ecf\u5386\u53f2\u4e00\u5e74\uff0c\u6309\u7167\u539f\u672c\u8ba1\u5212\uff0c\u7b2c\u4e8c\u6b65\u5e94\u8be5\u662fVMware\u79c1\u6709\u4e91\u5e73\u53f0\u642d\u5efa\uff0c\u4f46\u662f\u5f00\u6e90\u5b9e\u5728\u6765\u5f97\u592a\u8fc7\u51f6\u731b\uff0c\u535a\u4e3b\u8eab\u5728\u6218\u573a\u4e2d\u6df1\u6df1\u7684\u611f\u53d7\u5230\u4e86 &nbsp; &nbsp; Docker\u6709\u5f88\u591a\u79cd\u5b89\u88c5\u65b9\u5f0f\uff0c\u4f46\u662f\u6211\u63a8\u8350\u4f7f\u7528Ubuntu\uff0c\u56e0\u4e3aDocker\u662f\u5728ubuntu\u73af\u5883\u4e0b\u5f00\u53d1\u7684\uff0c\u6240\u4ee5\u5b89\u88c5\u5305\u6d4b\u8bd5\u6bd4\u8f83\u5145\u5206\uff08\u96be\u5ea6\u7cfb\u65700\uff09\uff0c\u8fd9\u91cc\u7531\u4e8e\u8981\u8ddfZa\u2026\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[231],"tags":[],"class_list":["post-15661","post","type-post","status-publish","format-standard","hentry","category-231"],"_links":{"self":[{"href":"https:\/\/vmcloud.info\/index.php?rest_route=\/wp\/v2\/posts\/15661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vmcloud.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vmcloud.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vmcloud.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vmcloud.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15661"}],"version-history":[{"count":2,"href":"https:\/\/vmcloud.info\/index.php?rest_route=\/wp\/v2\/posts\/15661\/revisions"}],"predecessor-version":[{"id":15691,"href":"https:\/\/vmcloud.info\/index.php?rest_route=\/wp\/v2\/posts\/15661\/revisions\/15691"}],"wp:attachment":[{"href":"https:\/\/vmcloud.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vmcloud.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vmcloud.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}