{"id":1650,"date":"2023-02-21T14:19:28","date_gmt":"2023-02-21T06:19:28","guid":{"rendered":"https:\/\/km94.com\/?p=1650"},"modified":"2023-02-21T14:19:28","modified_gmt":"2023-02-21T06:19:28","slug":"hostwinds%e5%ae%89%e8%a3%85docker%ef%bc%88%e5%9f%ba%e4%ba%8edebian%e7%9a%84%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%ef%bc%89%e7%9a%84%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/dy208.cn\/index.php\/2023\/02\/21\/hostwinds%e5%ae%89%e8%a3%85docker%ef%bc%88%e5%9f%ba%e4%ba%8edebian%e7%9a%84%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%ef%bc%89%e7%9a%84%e6%95%99%e7%a8%8b\/","title":{"rendered":"Hostwinds\u5b89\u88c5Docker\uff08\u57fa\u4e8eDebian\u7684\u64cd\u4f5c\u7cfb\u7edf\uff09\u7684\u6559\u7a0b"},"content":{"rendered":"<p>Hostwinds\u662f\u4e00\u5bb6\u6210\u7acb\u4e8e2010\u5e74\u7684\u7f8e\u56fd\u4e3b\u673a\u5546\uff0c\u4e3b\u8981\u63d0\u4f9b\u865a\u62df\u4e3b\u673a\u3001\u7f8e\u56fdVPS \u4ee5\u53ca\u7f8e\u56fd\u670d\u52a1\u5668\u7b49\u591a\u79cdIDC\u4e1a\u52a1\u3002\u5176\u4e2dHostwinds VPS\u91c7\u7528\u7684\u662fSSD\u786c\u76d8\uff0c\u652f\u6301Linux\u548cWindows\u64cd\u4f5c\u7cfb\u7edf\uff0c\u63d0\u4f9b\u5168\u7403CDN\u52a0\u901f\u529f\u80fd\uff0c\u6240\u4ee5\u53d7\u5230\u56fd\u5185\u5916\u7ad9\u957f\u7684\u4e00\u81f4\u5173\u6ce8\u3002<\/p>\n<p>Docker\u662f\u4e00\u79cd\u6d41\u884c\u7684\u5f00\u6e90\u5bb9\u5668\u7ba1\u7406\u7cfb\u7edf\uff0c\u53ef\u6ee1\u8db3\u4e91\u8ba1\u7b97\u9700\u6c42\uff0c\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edf\u3002 \u5b83\u5141\u8bb8\u60a8\u5728\u5355\u72ec\u7684\u5bb9\u5668\u4e2d\u8fd0\u884c\u4e0d\u540c\u7684\u5e94\u7528\u7a0b\u5e8f\u7ec4\u4ef6\uff0c\u4f8b\u5982Web\u670d\u52a1\u5668\uff0c\u6570\u636e\u5e93\u670d\u52a1\u5668\u548c\u6587\u4ef6\u5b58\u50a8\u7cfb\u7edf\u3002 \u60a8\u53ef\u4ee5\u5728\u4e00\u4e2aVPS\u6216\u4e13\u7528\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u591a\u4e2a\u5bb9\u5668\u3002 \u5bb9\u5668\u4e5f\u662f\u9ad8\u5ea6\u4fbf\u643a\u5f0f\u7684\uff0c\u4f7f\u5f97\u5728\u670d\u52a1\u5668\u4e4b\u95f4\u8f7b\u677e\u79fb\u52a8\u5b83\u4eec\u6216\u6839\u636e\u9700\u8981\u5c06\u5b83\u4eec\u90e8\u7f72\u5230\u6211\u4eec\u7684\u4e91\u6258\u7ba1\u73af\u5883\u4e2d\uff0c\u53ea\u9700\u5ef6\u8fdf\u5f88\u5c11\u3002<\/p>\n<p>\n\t<figure class=\"wp-block-image size-full\"><img decoding=\"async\" class=\"wp-image-1652\" alt=\"hostwinds\u6559\u7a0b\" src=\"https:\/\/km94.com\/wp-content\/uploads\/2023\/02\/hostwinds1-3.jpg\"><\/figure>\n\t<\/p>\n<p>\u672c\u6587\u5c06\u5f15\u5bfc\u60a8\u9010\u6b65\u4e86\u89e3Hostwinds\u5982\u4f55\u5728\u57fa\u4e8eDebian\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5Docker\u3002<\/p>\n<p><strong>\u5982\u4f55\u5b89\u88c5<\/strong><\/p>\n<p><strong>\u7b2c\u4e00\u6b65<\/strong> &#8211; \u786e\u4fddAPT\u5305\u7d22\u5f15\u662f\u6700\u65b0\u7684\u3002<\/p>\n<p>sudo apt-get update<\/p>\n<p><strong>\u7b2c\u4e8c\u6b65<\/strong> \u2013\u4e3aDebian\u5b89\u88c5Docker\u6240\u9700\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n<p>sudo apt-get install \\<\/p>\n<p>apt-transport-https \\<\/p>\n<p>ca-certificates \\<\/p>\n<p>curl \\<\/p>\n<p>gnupg2 \\<\/p>\n<p>software-properties-common<\/p>\n<p><strong>\u7b2c\u4e09\u6b65<\/strong> &#8211; \u5c06GPG\u952e\u6dfb\u52a0\u5230\u952e\u73af\u3002<\/p>\n<p>curl -fsSL https:\/\/download.docker.com\/linux\/debian\/gpg | sudo apt-key add &#8211;<\/p>\n<p>\u67e5\u770bDocker\u6587\u6863\u4e2d\u7684\u6307\u7eb9\u3002<\/p>\n<p><strong>\u7b2c\u56db\u6b65<\/strong> \u2013\u68c0\u67e5\u94a5\u5319\u6307\u7eb9\u4ee5\u786e\u4fdd\u5339\u914d\u3002<\/p>\n<p>sudo apt-key fingerprint 0EBFCD88<\/p>\n<p>\u6ce8\u610f\uff1a \u5982\u679c\u5bc6\u94a5\u6307\u7eb9\u4e0d\u5339\u914d\uff0c\u5efa\u8bae\u68c0\u67e5Docker\u5b98\u65b9\u6587\u6863\u4ee5\u83b7\u53d6\u6700\u65b0\u6307\u7eb9\u3002<\/p>\n<p><strong>\u7b2c\u4e94\u6b65<\/strong> \u2013\u5c06\u5b58\u50a8\u5e93\u6dfb\u52a0\u5230\u64cd\u4f5c\u7cfb\u7edf\u7684\u5217\u8868\u4e2d\u3002<\/p>\n<p>sudo add-apt-repository \\<\/p>\n<p>&#8220;deb [arch=amd64] https:\/\/download.docker.com\/linux\/debian \\<\/p>\n<p>$(lsb_release -cs) \\<\/p>\n<p>stable&#8221;<\/p>\n<p><strong>\u7b2c\u516d\u6b65<\/strong> &#8211; \u786e\u4fddAPT\u5305\u7d22\u5f15\u662f\u6700\u65b0\u7684\u3002 \uff08\u8fd9\u5f88\u91cd\u8981\uff0c\u5c24\u5176\u662f\u6dfb\u52a0\u5b58\u50a8\u5e93\u540e\uff09<\/p>\n<p>sudo apt-get update<\/p>\n<p><strong>\u7b2c\u4e03\u6b65<\/strong> \u2013\u5b89\u88c5Docker\u5f15\u64ce\u3002<\/p>\n<p>sudo apt-get install docker-ce docker-ce-cli containerd.io<\/p>\n<p><strong>\u7b2c\u516b\u6b65<\/strong>\u2013\u901a\u8fc7\u4e0b\u8f7d\u5e76\u8fd0\u884cDocker\u63d0\u4f9b\u7684hello-world\u5bb9\u5668\uff0c\u786e\u4fddDocker\u6b63\u5728\u8fd0\u884c\u3002<\/p>\n<p>sudo docker run hello-world<\/p>\n<p>\u4e0a\u9762\u7684\u547d\u4ee4\u4e0b\u8f7d\u5b98\u65b9\u7684Docker\u6d4b\u8bd5\u6620\u50cf\u5e76\u5728\u65b0\u5bb9\u5668\u4e2d\u8fd0\u884c\u5b83\u3002 \u5f53\u5b83\u8fd0\u884c\u65f6\uff0c\u5b83\u53ea\u4f1a\u6253\u5370\u4e00\u6761\u6d88\u606f\u5e76\u9000\u51fa\u3002<\/p>\n\n<div>\n<div>\n\n\n\n<\/div>\n<div>\n\n\n\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Hostwinds\u662f\u4e00\u5bb6\u6210\u7acb\u4e8e2010\u5e74\u7684\u7f8e\u56fd\u4e3b\u673a\u5546\uff0c\u4e3b\u8981\u63d0\u4f9b\u865a\u62df\u4e3b\u673a\u3001\u7f8e\u56fdVPS \u4ee5\u53ca\u7f8e\u56fd\u670d\u52a1\u5668\u7b49\u591a\u79cdIDC&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1651,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,2],"tags":[],"class_list":["post-1650","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zjjc","category-jc","entry"],"_links":{"self":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/1650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1650"}],"version-history":[{"count":0,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/1650\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}