{"id":3419,"date":"2023-09-10T11:13:05","date_gmt":"2023-09-10T03:13:05","guid":{"rendered":"http:\/\/www.yuguoxy.com\/geekhome\/?p=3419"},"modified":"2023-10-10T11:48:50","modified_gmt":"2023-10-10T03:48:50","slug":"docker-%e7%ae%80%e4%bb%8b%e5%92%8c%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=3419","title":{"rendered":"Docker \u7b80\u4ecb\u548c\u5b89\u88c5"},"content":{"rendered":"<h4>1.<a title=\"\u8be6\u7ec6\u9605\u8bfb Wsl2\u5b89\u88c5CentOS7\" href=\"https:\/\/ai.zhousir.top\/archives\/3430\">Wsl2\u5b89\u88c5CentOS7<\/a><\/h4>\n<h4>2.<a title=\"\u8be6\u7ec6\u9605\u8bfb Docker \u7b80\u4ecb\u548c\u5b89\u88c5\" href=\"https:\/\/ai.zhousir.top\/archives\/3419\">Docker \u7b80\u4ecb\u548c\u5b89\u88c5<\/a><\/h4>\n<h4>3.<a title=\"\u8be6\u7ec6\u9605\u8bfb Docker \u5feb\u901f\u5b89\u88c5\u8f6f\u4ef6\" href=\"https:\/\/ai.zhousir.top\/archives\/3434\">Docker \u5feb\u901f\u5b89\u88c5\u8f6f\u4ef6<\/a><\/h4>\n<h4>4.<a title=\"\u8be6\u7ec6\u9605\u8bfb \u5236\u4f5c\u81ea\u5df1\u7684\u955c\u50cf\" href=\"https:\/\/ai.zhousir.top\/archives\/3447\">\u5236\u4f5c\u81ea\u5df1\u7684\u955c\u50cf<\/a><\/h4>\n<h4>5.<a title=\"\u8be6\u7ec6\u9605\u8bfb Docker-Compose\u53d1\u5e03\u4e0e\u90e8\u7f72\" href=\"https:\/\/ai.zhousir.top\/archives\/3450\">Docker-Compose\u53d1\u5e03\u4e0e\u90e8\u7f72<\/a><\/h4>\n<h1>Docker \u7b80\u4ecb<\/h1>\n<p>Docker \u662f\u4ec0\u4e48<\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\">Docker \u662f\u4e00\u4e2a\u5e94\u7528\u6253\u5305\u3001\u5206\u53d1\u3001\u90e8\u7f72\u7684\u5de5\u5177<\/span><span class=\"md-line md-end-block\" contenteditable=\"true\">\u53ef\u4ee5\u628a\u5b83\u7406\u89e3\u4e3a\u4e00\u4e2a\u8f7b\u91cf\u7684\u865a\u62df\u673a\uff0c\u53ea\u865a\u62df\u4f60\u9879\u76ee\u9700\u8981\u7684\u8fd0\u884c\u73af\u5883<\/span><\/p>\n<p><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695901390733.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-3421\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695901390733.png\" alt=\"1695901390733\" width=\"560\" height=\"189\" \/><\/a><\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"md-image md-img-loaded\" contenteditable=\"false\" data-src=\".\/media\/1695901390733.png\"><img decoding=\"async\" src=\"file:\/\/D:\/course\/docker\/media\/1695901390733.png?lastModify=1696907597\" alt=\"\" data-local-refresh=\"true\" \/><\/span><\/span><\/p>\n<h3 class=\"md-end-block md-heading\" contenteditable=\"true\">\u6253\u5305\u3001\u5206\u53d1\u3001\u90e8\u7f72<\/h3>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u6253\u5305<\/strong><\/span>\uff1a\u5c31\u662f\u628a\u4f60\u8f6f\u4ef6\u8fd0\u884c\u6240\u9700\u7684\u4f9d\u8d56\u3001\u7b2c\u4e09\u65b9\u5e93\u3001\u8f6f\u4ef6\u6253\u5305\u5230\u4e00\u8d77\uff0c\u53d8\u6210\u4e00\u4e2a\u5b89\u88c5\u5305<\/span><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u5206\u53d1<\/strong><\/span>\uff1a\u4f60\u53ef\u4ee5\u628a\u4f60\u6253\u5305\u597d\u7684\u201c\u5b89\u88c5\u5305\u201d\u4e0a\u4f20\u5230\u4e00\u4e2a\u955c\u50cf\u4ed3\u5e93\uff0c\u5176\u4ed6\u4eba\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u7684\u83b7\u53d6\u548c\u5b89\u88c5<\/span><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u90e8\u7f72<\/strong><\/span>\uff1a\u62ff\u7740\u201c\u5b89\u88c5\u5305\u201d\u5c31\u53ef\u4ee5\u4e00\u4e2a\u547d\u4ee4\u8fd0\u884c\u8d77\u6765\u4f60\u7684\u5e94\u7528\uff0c\u81ea\u52a8\u6a21\u62df\u51fa\u4e00\u6478\u4e00\u6837\u7684\u8fd0\u884c\u73af\u5883\uff0c\u4e0d\u7ba1\u662f\u5728 Windows\/Mac\/Linux\u3002<\/span><\/p>\n<h3 class=\"md-end-block md-heading\" contenteditable=\"true\">Docker \u90e8\u7f72\u7684\u4f18\u52bf<\/h3>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5e38\u89c4\u5e94\u7528\u5f00\u53d1\u90e8\u7f72\u65b9\u5f0f\uff1a\u81ea\u5df1\u5728 Windows \u4e0a\u5f00\u53d1\u3001\u6d4b\u8bd5 &#8211;&gt; \u5230 Linux \u670d\u52a1\u5668\u914d\u7f6e\u8fd0\u884c\u73af\u5883\u90e8\u7f72\u3002<\/span><\/p>\n<blockquote>\n<p class=\"\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u95ee\u9898\uff1a\u6211\u673a\u5668\u4e0a\u8dd1\u90fd\u6ca1\u95ee\u9898\uff0c\u600e\u4e48\u5230\u670d\u52a1\u5668\u5c31\u5404\u79cd\u95ee\u9898\u4e86<\/span><\/p>\n<\/blockquote>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u7528 Docker \u5f00\u53d1\u90e8\u7f72\u6d41\u7a0b\uff1a\u81ea\u5df1\u5728 Windows \u4e0a\u5f00\u53d1\u3001\u6d4b\u8bd5 &#8211;&gt; \u6253\u5305\u4e3a Docker \u955c\u50cf\uff08\u53ef\u4ee5\u7406\u89e3\u4e3a\u8f6f\u4ef6\u5b89\u88c5\u5305\uff09 &#8211;&gt; \u5404\u79cd\u670d\u52a1\u5668\u4e0a\u53ea\u9700\u8981\u4e00\u4e2a\u547d\u4ee4\u90e8\u7f72\u597d<\/span><\/p>\n<blockquote><p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u4f18\u70b9\uff1a\u786e\u4fdd\u4e86\u4e0d\u540c\u673a\u5668\u4e0a\u8dd1\u90fd\u662f\u4e00\u81f4\u7684\u8fd0\u884c\u73af\u5883\uff0c\u4e0d\u4f1a\u51fa\u73b0\u6211\u673a\u5668\u4e0a\u8dd1\u6b63\u5e38\uff0c\u4f60\u673a\u5668\u8dd1\u5c31\u6709\u95ee\u9898\u7684\u60c5\u51b5\u3002<\/span><\/p><\/blockquote>\n<h3 class=\"md-end-block md-heading\" contenteditable=\"true\">\u91cd\u8981\u6982\u5ff5\uff1a\u955c\u50cf\u3001\u5bb9\u5668<\/h3>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u955c\u50cf<\/strong><\/span>\uff1a\u53ef\u4ee5\u7406\u89e3\u4e3a\u8f6f\u4ef6\u5b89\u88c5\u5305\uff0c\u53ef\u4ee5\u65b9\u4fbf\u7684\u8fdb\u884c\u4f20\u64ad\u548c\u5b89\u88c5\u3002<\/span><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u5bb9\u5668<\/strong><\/span>\uff1a\u8f6f\u4ef6\u5b89\u88c5\u540e\u7684\u72b6\u6001\uff0c\u6bcf\u4e2a\u8f6f\u4ef6\u8fd0\u884c\u73af\u5883\u90fd\u662f\u72ec\u7acb\u7684\u3001\u9694\u79bb\u7684\uff0c\u79f0\u4e4b\u4e3a\u5bb9\u5668\u3002<\/span><\/p>\n<p><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695903422970.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-3422\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695903422970.png\" alt=\"1695903422970\" width=\"749\" height=\"409\" \/><\/a><\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"md-image md-img-loaded\" contenteditable=\"false\" data-src=\".\/media\/1695903422970.png\"><img decoding=\"async\" src=\"file:\/\/D:\/course\/docker\/media\/1695903422970.png?lastModify=1696907597\" alt=\"\" data-local-refresh=\"true\" \/><\/span><\/span><\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><a spellcheck=\"false\" href=\"https:\/\/www.docker.org.cn\/index.html\">\u4e2d\u6587\u793e\u533a<\/a><\/span><\/span><\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><a spellcheck=\"false\" href=\"https:\/\/www.bilibili.com\/video\/BV1HP4118797\/?p=1&amp;vd_source=7b80eab05361907871761766ced7ace3\">\u89c6\u9891<\/a><\/span><\/span><\/p>\n<h3 class=\"md-end-block md-heading\" contenteditable=\"true\">\u5b89\u88c5<\/h3>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u684c\u9762\u7248\uff1a<a href=\"https:\/\/www.docker.com\/products\/docker-desktop\">https:\/\/www.docker.com\/products\/docker-desktop<\/a><\/span><\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u670d\u52a1\u5668\u7248\uff1a<a href=\"https:\/\/docs.docker.com\/engine\/install\/#server\">https:\/\/docs.docker.com\/engine\/install\/#server<\/a><\/span><\/p>\n<blockquote><p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5982\u679c\u88c5\u5728macOS\u3001windows\u3001linux\u7b49\u6709\u56fe\u5f62\u7684\u684c\u9762\u7535\u8111\uff0c\u5219\u7528docker desktop<\/span><\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5982\u679c\u88c5\u5728\u6ca1\u6709\u56fe\u5f62\u7684\u7535\u8111\uff0c\u5219\u7528docker engine\uff0c\u6bd4\u5982\u516c\u53f8\u7684centos\u670d\u52a1\u5668\u3001\u963f\u91cc\u4e91\u7684centos\u670d\u52a1\u5668\u7b49<\/span><\/p><\/blockquote>\n<h3 class=\"md-end-block md-heading\" contenteditable=\"true\">\u684c\u9762\u7248\u5b89\u88c5<\/h3>\n<ol class=\"ol-list\" start=\"\">\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">window11\u914d\u7f6e <\/span><\/p>\n<ul class=\"ul-list\" contenteditable=\"true\" data-mark=\"-\">\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u5f00\u542f Windows \u865a\u62df\u5316\u548c Linux \u5b50\u7cfb\u7edf\uff08WSL2)<\/strong><\/span> <\/span><\/p>\n<blockquote contenteditable=\"true\"><p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u63a7\u5236\u9762\u677f-&gt;\u7a0b\u5e8f-&gt;\u542f\u7528\u6216\u5173\u95ed windows \u529f\u80fd\uff0c\u5f00\u542f Windows \u865a\u62df\u5316\u548c Linux \u5b50\u7cfb\u7edf\uff08WSL2)<\/span><\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695902242225.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-3423\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695902242225.png\" alt=\"1695902242225\" width=\"675\" height=\"464\" \/><\/a> <\/span><\/p><\/blockquote>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"md-image md-img-loaded\" contenteditable=\"false\" data-src=\".\/media\/1695902242225.png\"><img decoding=\"async\" src=\"file:\/\/D:\/course\/docker\/media\/1695902242225.png?lastModify=1696907597\" alt=\"\" data-local-refresh=\"true\" \/><\/span><\/span><\/p>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u66f4\u65b0WSL2<\/strong><\/span><\/span><\/p>\n<blockquote contenteditable=\"true\"><p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5efa\u8bae\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c, \u5982\u679c\u4e0d\u662f\u6700\u65b0\u7248\u672c\u5b89\u88c5 \u684c\u9762\u7248\u672c\u7a0b\u5e8f\u65f6\u4f1a\u63d0\u793a <\/span><\/p><\/blockquote>\n<ul class=\"ul-list\" contenteditable=\"true\" data-mark=\"-\">\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><a spellcheck=\"false\" href=\"https:\/\/www.aliyundrive.com\/s\/h2aHcTDLTpV\">\u70b9\u51fb\u4e0b\u8f7dwsl_update_x64.msi<\/a><\/span> <\/span><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u5b89\u88c5centos7\u53d1\u884c\u7248\u672c<\/strong><\/span><\/span><\/p>\n<blockquote contenteditable=\"true\"><p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5b89\u88c5wsl2,\u672c\u8d28\u662f\u542f\u7528Hyper-V\u6838\u5fc3\u548c\u5b89\u88c5\u5fae\u8f6f\u5b9a\u5236\u7684linux\u5185\u6838\u548cboot\u6587\u4ef6\u7cfb\u7edf<\/span><\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\">wsl2\u4e0a\u5b89\u88c5centos7(Ubuntu),\u672c\u8d28\u662f\u4e0b\u8f7d\u5b89\u88c5\u5305\u542bcentos7(Ubuntu)\u53d1\u884c\u7248\u5185\u5bb9\u7684linux\u6839\u6587\u4ef6\u7cfb\u7edf<\/span><\/p>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\"><span spellcheck=\"false\"><a href=\"https:\/\/www.cnblogs.com\/xysgo\/p\/16883568.html\">https:\/\/www.cnblogs.com\/xysgo\/p\/16883568.html<\/a><\/span><\/span><\/p><\/blockquote>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8 Hypervisor<\/strong><\/span><\/span><\/p>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span spellcheck=\"false\"><code>bcdedit \/set hypervisorlaunchtype auto<\/code><\/span><\/span><\/p>\n<blockquote contenteditable=\"true\"><p><span class=\"md-line md-end-block\" contenteditable=\"true\">\u6ce8\u610f\u8981\u7528\u7ba1\u7406\u5458\u6743\u9650\u6253\u5f00 PowerShell<\/span><\/p><\/blockquote>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u8bbe\u7f6e\u9ed8\u8ba4\u4f7f\u7528\u7248\u672c2<\/strong><\/span><\/span><span class=\"md-line md-end-block\" contenteditable=\"true\"><span spellcheck=\"false\"><code>wsl.exe --set-default-version 2<\/code><\/span><\/span><\/p>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><strong>\u67e5\u770b WSL \u662f\u5426\u5b89\u88c5\u6b63\u786e<\/strong><\/span><\/span><span class=\"md-line md-end-block\" contenteditable=\"true\"><span spellcheck=\"false\"><code>wsl.exe --list --verbose<\/code><\/span><\/span><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5e94\u8be5\u5982\u4e0b\u56fe\uff0c\u53ef\u4ee5\u770b\u5230\u4e00\u4e2a Linux \u7cfb\u7edf\uff0c\u540d\u5b57\u4f60\u7684\u4e0d\u4e00\u5b9a\u8ddf\u6211\u7684\u4e00\u6837\uff0c\u770b\u4f60\u5b89\u88c5\u7684\u662f\u4ec0\u4e48\u7248\u672c\u3002<\/span><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5e76\u4e14 VERSION \u662f 2<\/span><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5b89\u88c5Docker Desktop<\/span><\/p>\n<ul class=\"ul-list\" contenteditable=\"true\" data-mark=\"-\">\n<li class=\"md-list-item\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><a spellcheck=\"false\" href=\"https:\/\/www.docker.com\/products\/docker-desktop\/\">\u5b98\u7f51\u4e0b\u8f7d<\/a><\/span> <\/span><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695902688809.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-3424\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695902688809.png\" alt=\"1695902688809\" width=\"711\" height=\"321\" \/><\/a><\/li>\n<\/ul>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"md-image md-img-loaded\" contenteditable=\"false\" data-src=\".\/media\/1695902688809.png\"><img decoding=\"async\" src=\"file:\/\/D:\/course\/docker\/media\/1695902688809.png?lastModify=1696907597\" alt=\"\" data-local-refresh=\"true\" \/><\/span><\/span><\/p>\n<ul class=\"ul-list\" contenteditable=\"true\" data-mark=\"-\">\n<li class=\"md-list-item\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"\"><a spellcheck=\"false\" href=\"https:\/\/www.aliyundrive.com\/s\/dEoVbuUuScB\">\u4e91\u76d8\u4e0b\u8f7d<\/a><\/span><\/span><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695902880364.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-3425\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695902880364.png\" alt=\"1695902880364\" width=\"782\" height=\"445\" \/><\/a><\/li>\n<\/ul>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"md-image md-img-loaded\" contenteditable=\"false\" data-src=\".\/media\/1695902880364.png\"><img decoding=\"async\" src=\"file:\/\/D:\/course\/docker\/media\/1695902880364.png?lastModify=1696907597\" alt=\"\" data-local-refresh=\"true\" \/><\/span><\/span><\/p>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u955c\u50cf\u52a0\u901f\u6e90<\/span><\/p>\n<figure class=\"md-table-fig\" contenteditable=\"false\">\n<table class=\"md-table\">\n<thead>\n<tr class=\"md-end-block\">\n<th><span class=\"td-span\" contenteditable=\"true\">\u955c\u50cf\u52a0\u901f\u5668<\/span><\/th>\n<th><span class=\"td-span\" contenteditable=\"true\">\u955c\u50cf\u52a0\u901f\u5668\u5730\u5740<\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"md-end-block\">\n<td><span class=\"td-span\" contenteditable=\"true\">Docker \u4e2d\u56fd\u5b98\u65b9\u955c\u50cf<\/span><\/td>\n<td><span class=\"td-span\" contenteditable=\"true\"><span spellcheck=\"false\"><a href=\"https:\/\/registry.docker-cn.com\">https:\/\/registry.docker-cn.com<\/a><\/span><\/span><\/td>\n<\/tr>\n<tr class=\"md-end-block\">\n<td><span class=\"td-span\" contenteditable=\"true\">DaoCloud \u955c\u50cf\u7ad9<\/span><\/td>\n<td><span class=\"td-span\" contenteditable=\"true\"><span spellcheck=\"false\"><a href=\"http:\/\/f1361db2.m.daocloud.io\">http:\/\/f1361db2.m.daocloud.io<\/a><\/span><\/span><\/td>\n<\/tr>\n<tr class=\"md-end-block\">\n<td><span class=\"td-span\" contenteditable=\"true\">Azure \u4e2d\u56fd\u955c\u50cf<\/span><\/td>\n<td><span class=\"td-span\" contenteditable=\"true\"><span spellcheck=\"false\"><a href=\"https:\/\/dockerhub.azk8s.cn\">https:\/\/dockerhub.azk8s.cn<\/a><\/span><\/span><\/td>\n<\/tr>\n<tr class=\"md-end-block\">\n<td><span class=\"td-span\" contenteditable=\"true\">\u79d1\u5927\u955c\u50cf\u7ad9<\/span><\/td>\n<td><span class=\"td-span\" contenteditable=\"true\"><span spellcheck=\"false\"><a href=\"https:\/\/docker.mirrors.ustc.edu.cn\">https:\/\/docker.mirrors.ustc.edu.cn<\/a><\/span><\/span><\/td>\n<\/tr>\n<tr class=\"md-end-block\">\n<td><span class=\"td-span\" contenteditable=\"true\">\u963f\u91cc\u4e91<\/span><\/td>\n<td><span class=\"td-span\" contenteditable=\"true\"><span spellcheck=\"false\"><a href=\"https:\/\/ud6340vz.mirror.aliyuncs.com\">https:\/\/ud6340vz.mirror.aliyuncs.com<\/a><\/span><\/span><\/td>\n<\/tr>\n<tr class=\"md-end-block\">\n<td><span class=\"td-span\" contenteditable=\"true\">\u4e03\u725b\u4e91<\/span><\/td>\n<td><span class=\"td-span\" contenteditable=\"true\"><span spellcheck=\"false\"><a href=\"https:\/\/reg-mirror.qiniu.com\">https:\/\/reg-mirror.qiniu.com<\/a><\/span><\/span><\/td>\n<\/tr>\n<tr class=\"md-end-block\">\n<td><span class=\"td-span\" contenteditable=\"true\">\u7f51\u6613\u4e91<\/span><\/td>\n<td><span class=\"td-span\" contenteditable=\"true\"><span spellcheck=\"false\"><a href=\"https:\/\/hub-mirror.c.163.com\">https:\/\/hub-mirror.c.163.com<\/a><\/span><\/span><\/td>\n<\/tr>\n<tr class=\"md-end-block\">\n<td><span class=\"td-span\" contenteditable=\"true\">\u817e\u8baf\u4e91<\/span><\/td>\n<td><span class=\"td-span\" contenteditable=\"true\"><span spellcheck=\"false\"><a href=\"https:\/\/mirror.ccs.tencentyun.com\">https:\/\/mirror.ccs.tencentyun.com<\/a><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p><span class=\"md-line md-end-block\" contenteditable=\"true\"><span spellcheck=\"false\"><code>\"registry-mirrors\": [\"https:\/\/registry.docker-cn.com\"]<\/code><\/span><\/span><\/p>\n<p><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695905511255.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-3426\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2023\/10\/1695905511255.png\" alt=\"1695905511255\" width=\"748\" height=\"401\" \/><\/a><\/p>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span class=\"md-image md-img-loaded\" contenteditable=\"false\" data-src=\".\/media\/1695905511255.png\"><img decoding=\"async\" src=\"file:\/\/D:\/course\/docker\/media\/1695905511255.png?lastModify=1696907597\" alt=\"\" data-local-refresh=\"true\" \/><\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<h3 class=\"md-end-block md-heading\" contenteditable=\"true\">\u670d\u52a1\u7248\u5b89\u88c5<\/h3>\n<blockquote><p><span class=\"md-line md-end-block\" contenteditable=\"true\">CentOS \u4e2d\u5229\u7528 yum \u5b89\u88c5 Docker \/ Docker-compose<\/span><\/p><\/blockquote>\n<ol class=\"ol-list\" start=\"\">\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5378\u8f7d\u673a\u5668\u4e0adocker\u6216\u8005docker-engine\u65e7\u7248\u672c\u4ee5\u53ca\u76f8\u5173\u7684\u4f9d\u8d56\u9879<\/span><\/p>\n<pre class=\"md-fences md-end-block\" lang=\"\" contenteditable=\"false\">yum remove -y  docker \\\r\n  docker-client \\\r\n  docker-client-latest \\\r\n  docker-common \\\r\n  docker-latest \\\r\n  docker-latest-logrotate \\\r\n  docker-logrotate \\\r\n  docker-engine<\/pre>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5728\u65b0\u4e3b\u673a\u4e0a\u9996\u6b21\u5b89\u88c5 Docker Engine \u4e4b\u524d\uff0c\u60a8\u9700\u8981 \u8bbe\u7f6e Docker \u7a33\u5b9a\u7684\u5b58\u50a8\u5e93\u3002<\/span><\/p>\n<pre class=\"md-fences md-end-block\" lang=\"\" contenteditable=\"false\">sudo yum install -y yum-utils\r\nsudo yum-config-manager \\\r\n \u00a0  --add-repo \\\r\n \u00a0  https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<\/pre>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 Docker Engine \u548c containerd<\/span><\/p>\n<blockquote contenteditable=\"true\"><p><span class=\"md-line md-end-block\" contenteditable=\"true\">Docker Community Edition (CE) \u5bf9\u4e8e\u5e0c\u671b\u5f00\u59cb\u4f7f\u7528Docker\u5e76\u5c1d\u8bd5\u57fa\u4e8e\u5bb9\u5668\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u4eba\u5458\u548c\u5c0f\u578b\u56e2\u961f\u6765\u8bf4\u975e\u5e38\u7406\u60f3\u3002<\/span><\/p><\/blockquote>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span spellcheck=\"false\"><code>sudo yum install docker-ce docker-ce-cli containerd.io docker-compose<\/code><\/span><\/span><\/p>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684 Docker Engine\uff0c\u8bf7\u5728\u5217\u51fa\u53ef\u7528\u7248\u672c\u4e2d\u9009\u62e9\u5e76\u5b89\u88c5<\/span><\/p>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span spellcheck=\"false\"><code>yum list docker-ce --showduplicates | sort -r<\/code><\/span><\/span><\/p>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">docker-ce.x86_64 3:18.09.5-3.el7 docker-ce-stable<\/span><\/p>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">docker-ce.x86_64 3:18.09.5-3.el7 docker-ce-stable <\/span><\/p>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u5f53\u524d\u4f7f\u7528\u7248\u672c<\/span><\/p>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span spellcheck=\"false\"><code>sudo yum install -y docker-ce-19.03.15 docker-ce-cli-19.03.15 containerd.io docker-compose<\/code><\/span><\/span><\/p>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u66f4\u65b0docker-ceDocker CE\u6709\u4e09\u79cd\u66f4\u65b0\u901a\u9053\u662f\u7a33\u5b9a\u901a\u9053\u3001\u6d4b\u8bd5\u901a\u9053\u548c\u591c\u95f4\u901a\u9053<\/span><\/p>\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\"><span spellcheck=\"false\"><code>yum -y upgrade docker-ce<\/code><\/span><\/span><\/p>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u542f\u52a8 Docker<\/span><\/p>\n<pre class=\"md-fences md-end-block\" lang=\"\" contenteditable=\"false\">$ sudo systemctl enable docker\r\n$ sudo systemctl start docker<\/pre>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u67e5\u770bdocker\u542f\u52a8\u72b6\u6001<\/span><\/p>\n<pre class=\"md-fences md-end-block\" lang=\"\" contenteditable=\"false\">$ docker version\r\nClient:\r\n Version: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 18.09.5\r\n API version: \u00a0 \u00a0 \u00a0 1.39\r\n Go version: \u00a0 \u00a0 \u00a0  go1.10.8\r\n Git commit: \u00a0 \u00a0 \u00a0  e8ff056\r\n Built: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Thu Apr 11 04:43:34 2019\r\n OS\/Arch: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 linux\/amd64<\/pre>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u79fb\u51fadocker-ce<\/span><\/p>\n<pre class=\"md-fences md-end-block\" lang=\"\" contenteditable=\"false\">$ sudo yum remove docker-ce\r\n$ sudo rm -rf \/var\/lib\/docker<\/pre>\n<\/li>\n<li class=\"md-list-item\">\n<p contenteditable=\"true\"><span class=\"md-line md-end-block\" contenteditable=\"true\">\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u62c9\u53d6\u5e76\u8fd0\u884chello-world\u955c\u50cf\u9a8c\u8bc1 Docker Engine \u662f\u5426\u5df2\u6b63\u786e\u5b89\u88c5<\/span><\/p>\n<pre class=\"md-fences md-end-block\" lang=\"\" contenteditable=\"false\">docker pull hello-world\r\ndocker images\r\ndocker run hello-world<\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>1.Wsl2\u5b89\u88c5CentOS7 2.Docker \u7b80\u4ecb\u548c\u5b89\u88c5 3.Docker \u5feb\u901f\u5b89\u88c5\u8f6f\u4ef6 4.\u5236\u4f5c\u81ea\u5df1\u7684\u955c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[105],"tags":[159],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/3419"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3419"}],"version-history":[{"count":6,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/3419\/revisions"}],"predecessor-version":[{"id":3455,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/3419\/revisions\/3455"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}