{"id":212610,"date":"2021-03-15T10:01:27","date_gmt":"2021-03-15T02:01:27","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=212610"},"modified":"2021-03-02T09:46:54","modified_gmt":"2021-03-02T01:46:54","slug":"windows-docker","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/windows-docker.html","title":{"rendered":"\u5982\u4f55\u5728Windows\u4e0a\u5b89\u88c5Docker"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nWindows\u7684Docker\u684c\u9762\u662fMicrosoft Windows\u7684Docker\u7684\u793e\u533a\u7248\u672c\u3002\u60a8\u53ef\u4ee5\u4eceDocker Hub\u4e0b\u8f7d\u9002\u7528\u4e8eWindows\u7684Docker\u684c\u9762\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u80cc\u666f<\/strong><\/div>\n

Windows\u7684Docker\u684c\u9762\u662fMicrosoft Windows\u7684Docker\u7684\u793e\u533a\u7248\u672c\u3002\u60a8\u53ef\u4ee5\u4eceDocker Hub\u4e0b\u8f7d\u9002\u7528\u4e8eWindows\u7684Docker\u684c\u9762\u3002\u8be5\u9875\u9762\u5305\u542b\u6709\u5173\u5728Windows 10 Pro\uff0cEnterprise\u548cEducation\u4e0a\u5b89\u88c5Docker Desktop\u7684\u4fe1\u606f\u3002\u5982\u679c\u8981\u67e5\u627e\u6709\u5173\u5728Windows 10 Home\u4e0a\u5b89\u88c5Docker\u684c\u9762\u7684\u4fe1\u606f.<\/p>\n

\u4e0b\u8f7d\u5730\u5740\uff1a<\/strong><\/div>\n

https:\/\/hub.docker.com\/editions\/community\/docker-ce-desktop-windows\/<\/p>\n

\u7cfb\u7edf\u8981\u6c42<\/strong><\/div>\n

Windows 10 64\u4f4d\uff1a\u4e13\u4e1a\u7248\uff0c\u4f01\u4e1a\u7248\u6216\u6559\u80b2\u7248(\u5185\u90e8\u7248\u672c17134\u6216\u66f4\u9ad8\u7248\u672c)\u3002
\n\u5fc5\u987b\u542f\u7528Hyper-V\u548cContainers Windows\u529f\u80fd\u3002
\n\u8981\u5728Windows 10\u4e0a\u6210\u529f\u8fd0\u884cClient Hyper-V\uff0c\u9700\u8981\u6ee1\u8db3\u4ee5\u4e0b\u786c\u4ef6\u5148\u51b3\u6761\u4ef6\uff1a
\n\u5177\u6709\u4e8c\u7ea7\u5730\u5740\u8f6c\u6362(SLAT)\u768464\u4f4d\u5904\u7406\u5668
\n4GB\u7cfb\u7edf\u5185\u5b58
\n\u5fc5\u987b\u5728BIOS\u8bbe\u7f6e\u4e2d\u542f\u7528BIOS\u7ea7\u786c\u4ef6\u865a\u62df\u5316\u652f\u6301\u3002<\/p>\n

\u5b89\u88c5<\/strong><\/div>\n

\u5728Windows\u4e0a\u5b89\u88c5Docker\u684c\u9762<\/p>\n

1.\u53cc\u51fbDocker Desktop Installer.exe\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n

\u5982\u679c\u5c1a\u672a\u4e0b\u8f7d\u5b89\u88c5\u7a0b\u5e8f(Docker Desktop Installer.exe)\uff0c\u5219\u53ef\u4ee5\u4ece Docker Hub\u8fdb\u884c\u4e0b\u8f7d\u3002\u5b83\u901a\u5e38\u4f1a\u4e0b\u8f7d\u5230\u60a8\u7684Downloads\u6587\u4ef6\u5939\u4e2d\uff0c\u6216\u8005\u60a8\u53ef\u4ee5\u4eceWeb\u6d4f\u89c8\u5668\u5e95\u90e8\u7684\u201c\u6700\u8fd1\u4e0b\u8f7d\u201d\u680f\u4e2d\u8fd0\u884c\u5b83\u3002<\/p>\n

2.\u51fa\u73b0\u63d0\u793a\u65f6\uff0c\u8bf7\u786e\u4fdd\u5728\u201c\u914d\u7f6e\u201d\u9875\u9762\u4e0a\u9009\u62e9\u4e86\u201c\u542f\u7528Hyper-V Windows\u529f\u80fd\u201d\u9009\u9879\u3002<\/p>\n

3.\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u4e0a\u7684\u8bf4\u660e\u6388\u6743\u5b89\u88c5\u7a0b\u5e8f\u5e76\u7ee7\u7eed\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n

4.\u5b89\u88c5\u6210\u529f\u540e\uff0c\u5355\u51fb\u201c\u5173\u95ed\u201d\u4ee5\u5b8c\u6210\u5b89\u88c5\u8fc7\u7a0b\u3002<\/p>\n

5.\u5982\u679c\u60a8\u7684\u7ba1\u7406\u5458\u5e10\u6237\u4e0e\u7528\u6237\u5e10\u6237\u4e0d\u540c\uff0c\u5219\u5fc5\u987b\u5c06\u8be5\u7528\u6237\u6dfb\u52a0\u5230docker-users\u7ec4\u3002 \u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c \u8ba1\u7b97\u673a\u7ba1\u7406\uff0c\u7136\u540e\u5bfc\u822a\u5230 \u672c\u5730\u7528\u6237\u548c\u7ec4>\u7ec4 > docker-users\u3002\u53f3\u952e\u5355\u51fb\u4ee5\u5c06\u8be5\u7528\u6237\u6dfb\u52a0\u5230\u8be5\u7ec4\u3002\u6ce8\u9500\u5e76\u91cd\u65b0\u767b\u5f55\uff0c\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/p>\n

\u542f\u52a8<\/strong><\/div>\n

Docker Desktop\u5728\u5b89\u88c5\u540e\u4e0d\u4f1a\u81ea\u52a8\u542f\u52a8\u3002\u8981\u542f\u52a8Docker Desktop\uff0c\u8bf7\u641c\u7d22Docker\uff0c\u7136\u540e\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u9009\u62e9Docker Desktop\u3002<\/p>\n

\"\"<\/p>\n

\u5f53\u72b6\u6001\u680f\u4e2d\u7684\u9cb8\u9c7c\u56fe\u6807\u4fdd\u6301\u7a33\u5b9a\u65f6\uff0cDocker\u684c\u9762\u5c06\u8fd0\u884c\uff0c\u5e76\u4e14\u53ef\u4ee5\u4ece\u4efb\u4f55\u7ec8\u7aef\u7a97\u53e3\u8bbf\u95ee\u3002<\/p>\n

\"\"<\/p>\n

\u5982\u679c\u201c\u9cb8\u9c7c\u201d\u56fe\u6807\u9690\u85cf\u5728\u201c\u901a\u77e5\u201d\u533a\u57df\u4e2d\uff0c\u8bf7\u5355\u51fb\u4efb\u52a1\u680f\u4e0a\u7684\u5411\u4e0a\u7bad\u5934\u4ee5\u663e\u793a\u5b83\u3002<\/p>\n

\u521d\u59cb\u5316\u5b8c\u6210\u540e\uff0cDocker Desktop\u5c06\u542f\u52a8\u5165\u95e8\u6559\u7a0b\u3002\u672c\u6559\u7a0b\u5305\u62ec\u4e00\u4e2a\u7b80\u5355\u7684\u7ec3\u4e60\uff0c\u4ee5\u6784\u5efa\u793a\u4f8bDocker\u6620\u50cf\uff0c\u5c06\u5176\u4f5c\u4e3a\u5bb9\u5668\u8fd0\u884c\uff0c\u5c06\u6620\u50cf\u63a8\u9001\u5e76\u4fdd\u5b58\u5230Docker Hub\u3002<\/p>\n

\"\"<\/p>\n

\u606d\u559c\u4f60!\u60a8\u73b0\u5728\u53ef\u4ee5\u5728Windows\u4e0a\u6210\u529f\u8fd0\u884cDocker Desktop\u3002<\/p>\n

\u5982\u679c\u60a8\u60f3\u91cd\u65b0\u8fd0\u884c\u672c\u6559\u7a0b\uff0c\u8bf7\u8f6c\u5230Docker Desktop\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9Learn\u3002<\/p>\n

\u81ea\u52a8\u66f4\u65b0<\/strong><\/div>\n

\u4eceDocker Desktop 3.0.0\u5f00\u59cb\uff0c\u5bf9Docker Desktop\u7684\u66f4\u65b0\u5c06\u4f5c\u4e3a\u4ee5\u524d\u7248\u672c\u7684\u589e\u91cf\u66f4\u65b0\u81ea\u52a8\u63d0\u4f9b\u3002\u5f53\u6709\u53ef\u7528\u66f4\u65b0\u65f6\uff0cDocker Desktop\u4f1a\u81ea\u52a8\u5c06\u5176\u4e0b\u8f7d\u5230\u60a8\u7684\u8ba1\u7b97\u673a\u4e0a\u5e76\u663e\u793a\u4e00\u4e2a\u56fe\u6807\uff0c\u6307\u793a\u6709\u8f83\u65b0\u7248\u672c\u7684\u53ef\u7528\u6027\u3002\u73b0\u5728\u60a8\u9700\u8981\u505a\u7684\u5c31\u662f\u5355\u51fb\u201c\u66f4\u65b0\u201d\uff0c\u7136\u540e\u4eceDocker\u83dc\u5355\u91cd\u65b0\u542f\u52a8\u3002\u8fd9\u5c06\u5b89\u88c5\u6700\u65b0\u7684\u66f4\u65b0\u5e76\u91cd\u65b0\u542f\u52a8Docker Desktop\uff0c\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/p>\n

\u5378\u8f7d<\/strong><\/div>\n

\u8981\u4eceWindows\u673a\u5668\u4e0a\u5378\u8f7dDocker Desktop\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n

\u4eceWindows\u5f00\u59cb\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u8bbe\u7f6e>\u5e94\u7528\u7a0b\u5e8f>\u5e94\u7528\u7a0b\u5e8f\u53ca\u529f\u80fd\u3002
\n\u4ece\u201c\u5e94\u7528\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u5217\u8868\u4e2d\u9009\u62e9Docker Desktop\uff0c\u7136\u540e\u9009\u62e9\u201c\u5378\u8f7d\u201d\u3002
\n\u5355\u51fb\u5378\u8f7d\u4ee5\u786e\u8ba4\u60a8\u7684\u9009\u62e9\u3002
\n\u5378\u8f7dDocker Desktop\u5c06\u7834\u574f\u8ba1\u7b97\u673a\u672c\u5730\u7684Docker\u5bb9\u5668\u548c\u6620\u50cf\uff0c\u5e76\u5220\u9664\u5e94\u7528\u7a0b\u5e8f\u751f\u6210\u7684\u6587\u4ef6\u3002<\/p>\n

\u4fdd\u5b58\u548c\u8fd8\u539f<\/strong><\/div>\n

\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u8fc7\u7a0b\u4fdd\u5b58\u548c\u8fd8\u539f\u56fe\u50cf\u548c\u5bb9\u5668\u6570\u636e\u3002\u4f8b\u5982\uff0c\u5982\u679c\u8981\u91cd\u7f6eVM\u78c1\u76d8\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n

\u4f7f\u7528docker save -o images.tar image1 [image2 ...]\u4ee5\u8282\u7701\u60a8\u60f3\u4fdd\u7559\u4efb\u4f55\u56fe\u50cf\u3002
\n\u4f7f\u7528docker export -o myContainner1.tar container1\u4f60\u60f3\u4fdd\u6301\u51fa\u53e3\u96c6\u88c5\u7bb1\u3002
\n\u5378\u8f7d\u5f53\u524d\u7248\u672c\u7684Docker Desktop\u5e76\u5b89\u88c5\u5176\u4ed6\u7248\u672c\uff0c\u6216\u91cd\u7f6e\u60a8\u7684VM\u78c1\u76d8\u3002
\n\u4f7f\u7528docker load -i images.tar\u91cd\u65b0\u52a0\u8f7d\u4ee5\u524d\u4fdd\u5b58\u7684\u56fe\u50cf\u3002
\n\u4f7f\u7528docker import -i myContainer1.tar\u521b\u5efa\u5bf9\u5e94\u4e8e\u5148\u524d\u5bfc\u51fa\u5bb9\u5668\u6587\u4ef6\u7cfb\u7edf\u6620\u50cf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Windows\u7684Docker\u684c\u9762\u662fMicrosoft Windows\u7684Docker\u7684\u793e\u533a\u7248\u672c\u3002\u60a8\u53ef\u4ee5\u4eceDock […]<\/p>\n","protected":false},"author":1898,"featured_media":212618,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[438],"class_list":["post-212610","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread","tag-docker"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/212610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1898"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=212610"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/212610\/revisions"}],"predecessor-version":[{"id":212621,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/212610\/revisions\/212621"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/212618"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=212610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=212610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=212610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}