{"id":20708,"date":"2025-04-19T03:36:31","date_gmt":"2025-04-18T19:36:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/20708.html"},"modified":"2025-04-19T03:36:31","modified_gmt":"2025-04-18T19:36:31","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%83%a8%e7%bd%b2docker","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/20708.html","title":{"rendered":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72Docker"},"content":{"rendered":"<h4>\u4e00\u3001 \u9009\u62e9\u670d\u52a1\u5668<\/h4>\n<p>\u00a0 \u00a0 \u00a0\u6211\u9009\u62e9\u4e00\u4e2a\u963f\u91cc\u4e91\u670d\u52a1\u5668\u3002\u4ee5\u4e0b\u662f\u83b7\u53d6\u963f\u91cc\u4e91\u670d\u52a1\u5668\u5b9e\u4f8b\u7684\u6b65\u9aa4&#xff1a;<\/p>\n<li>\u767b\u5f55\u5230 \u963f\u91cc\u4e91\u5b98\u7f51\u3002<\/li>\n<li>\u5728\u5bfc\u822a\u680f\u4e2d\u9009\u62e9 &#034;\u4e91\u670d\u52a1\u5668 ECS&#034;\u3002<\/li>\n<li>\u9009\u62e9\u9002\u5408\u7684\u5730\u57df\u548c\u5b9e\u4f8b\u89c4\u683c&#xff08;\u4e00\u822c\u9009\u62e9\u9ed8\u8ba4\u7684\u5c31\u53ef\u4ee5&#xff09;\u3002<\/li>\n<li>\u5728\u521b\u5efa\u5b9e\u4f8b\u8fc7\u7a0b\u4e2d&#xff0c;\u4f60\u53ef\u4ee5\u9009\u62e9\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u63a8\u8350\u4f7f\u7528 Ubuntu 20.04 LTS \u6216 CentOS 7\/8\u3002<\/li>\n<li>\u914d\u7f6e\u597d\u5b9e\u4f8b\u4fe1\u606f\u540e&#xff0c;\u8d2d\u4e70\u5e76\u542f\u52a8\u4f60\u7684 ECS \u5b9e\u4f8b\u3002<\/li>\n<h4>\u4e8c\u3001\u00a0\u767b\u5f55\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668<\/h4>\n<p>\u767b\u5f55\u6210\u529f\u540e&#xff0c;\u4f60\u53ef\u4ee5\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\u3002\u9996\u5148&#xff0c;\u83b7\u53d6\u4f60\u5b9e\u4f8b\u7684\u516c\u7f51 IP \u5730\u5740&#xff0c;\u7136\u540e\u901a\u8fc7 SSH \u5ba2\u6237\u7aef\u8fde\u63a5&#xff08;\u5728 Windows \u4e0a\u53ef\u4ee5\u4f7f\u7528 <span style=\"color:#6795b5\">Xshell<\/span>&#xff0c;\u5728 Linux \u6216 macOS \u4e0a\u76f4\u63a5\u4f7f\u7528\u7ec8\u7aef&#xff09;\u3002<\/p>\n<p>\u963f\u91cc\u4e91\u4e5f\u652f\u6301\u7f51\u9875\u767b\u5f55&#xff0c;\u6709AI\u52a9\u624b\u975e\u5e38\u65b9\u4fbf&#xff08;\u5efa\u8bae\u4ee5\u516c\u7f51IP\u767b\u5f55&#xff0c;\u79c1\u7f51IP\u662f\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u8baf&#xff09;&#xff0c;\u4f46\u662f\u8981\u6ce8\u610f\u7684\u662f&#xff0c;<span style=\"color:#fe2c24\">\u670d\u52a1\u5668\u5173\u95ed\u540e\u91cd\u542f\u516c\u7f51IP\u53ef\u80fd\u4f1a\u6709\u6240\u6539\u53d8*<\/span><\/p>\n<h4>\u4e09\u3001\u00a0\u66f4\u65b0\u670d\u52a1\u5668\u8f6f\u4ef6\u5305\u548c\u5b89\u88c5 Docker<\/h4>\n<p id=\"u13547584\">\u5982\u679c\u4f60\u662f\u4e91\u670d\u52a1\u5668\u6216&#xff0c;\u76f4\u63a5\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u5c31\u53ef\u4ee5\u5b89\u88c5\u3002\u590d\u5236&#xff0c;\u7c98\u8d34\u5373\u53ef\u3002\u5982\u679c\u4e0d\u60f3\u4f53\u9a8c docker \u5b89\u88c5&#xff0c;\u53ef\u4ee5\u5728\u5b98\u7f51\u76f4\u63a5\u914d\u7f6e\u5e26\u6709Docker\u7684\u6e90\u3002<\/p>\n<h6>1\u3001\u68c0\u67e5\u767b\u5f55<\/h6>\n<p>uname -r<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"40\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418193628-6802a9bcd20e8.png\" width=\"355\" \/><\/p>\n<h6>2\u3001\u57fa\u4e8e Red Hat \u7684 Linux \u7cfb\u7edf&#xff08;\u5982 CentOS\u3001RHEL \u6216 Fedora&#xff09;\u4e0a\u901a\u8fc7 yum \u5305\u7ba1\u7406\u5668\u5b89\u88c5\u591a\u4e2a\u8f6f\u4ef6\u5305\u3002<\/h6>\n<p>yum install -y yum-utils device-mapper-persistent-data lvm2 <\/p>\n<p>\u4ee5\u4e0b\u662f\u5404\u4e2a\u8f6f\u4ef6\u5305\u7684\u89e3\u91ca&#xff1a;<\/p>\n<li>\n<p>yum-utils&#xff1a;\u8fd9\u662f\u4e00\u4e2a\u5305\u542b\u591a\u79cd\u5de5\u5177\u7684\u5305&#xff0c;\u65e8\u5728\u5e2e\u52a9\u7ba1\u7406 yum \u7cfb\u7edf\u4e2d\u7684\u8f6f\u4ef6\u5305\u3001\u4ed3\u5e93\u548c\u914d\u7f6e\u3002\u5b83\u5305\u62ec\u5982 yumdownloader\u3001repoquery \u7b49\u5de5\u5177\u3002<\/p>\n<\/li>\n<li>\n<p>device-mapper-persistent-data&#xff1a;\u63d0\u4f9b\u4e86\u8bbe\u5907\u6620\u5c04\u529f\u80fd\u6240\u9700\u7684\u5e93\u548c\u5de5\u5177&#xff0c;\u4e3b\u8981\u7528\u4e8e\u5728 Linux \u7cfb\u7edf\u4e2d\u521b\u5efa\u548c\u7ba1\u7406\u903b\u8f91\u5377&#xff08;LVM&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>lvm2&#xff1a;\u63d0\u4f9b\u4e86 LVM&#xff08;\u903b\u8f91\u5377\u7ba1\u7406\u5668&#xff09;\u6240\u9700\u7684\u5de5\u5177\u548c\u5e93&#xff0c;\u7528\u4e8e\u521b\u5efa\u3001\u8c03\u6574\u3001\u5220\u9664\u903b\u8f91\u5377\u3002<\/p>\n<\/li>\n<p>\u901a\u8fc7\u8fd0\u884c yum install -y yum-utils device-mapper-persistent-data lvm2&#xff0c;\u8fd9\u4e9b\u8f6f\u4ef6\u5305\u5c06\u4f1a\u88ab\u81ea\u52a8\u5b89\u88c5&#xff0c;-y \u53c2\u6570\u8868\u793a\u81ea\u52a8\u786e\u8ba4\u6240\u6709\u5b89\u88c5\u64cd\u4f5c&#xff0c;\u65e0\u9700\u7528\u6237\u624b\u52a8\u786e\u8ba4\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"314\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418193628-6802a9bce9636.png\" width=\"365\" \/><\/p>\n<h6>3\u3001\u5c06 Docker \u7684\u5b98\u65b9\u4ed3\u5e93\u6dfb\u52a0\u5230 CentOS \u7cfb\u7edf\u7684 yum \u914d\u7f6e\u4e2d<\/h6>\n<p>yum-config-manager &#8211;add-repo http:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/docker-ce.repo <\/p>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u7528\u4e8e\u5c06 Docker \u7684\u5b98\u65b9\u4ed3\u5e93\u6dfb\u52a0\u5230 CentOS \u7cfb\u7edf\u7684 yum \u914d\u7f6e\u4e2d\u3002\u5177\u4f53\u89e3\u91ca\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li>yum-config-manager&#xff1a;\u8fd9\u662f yum-utils \u5305\u4e2d\u7684\u4e00\u4e2a\u5de5\u5177&#xff0c;\u7528\u4e8e\u7ba1\u7406 yum \u4ed3\u5e93\u7684\u914d\u7f6e\u3002\u53ef\u4ee5\u7528\u5b83\u6765\u6dfb\u52a0\u3001\u5220\u9664\u6216\u67e5\u770b\u4ed3\u5e93\u3002<\/li>\n<li>&#8211;add-repo&#xff1a;\u8868\u793a\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u4ed3\u5e93\u3002<\/li>\n<li>http:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/docker-ce.repo&#xff1a;\u8fd9\u662f\u963f\u91cc\u4e91\u63d0\u4f9b\u7684 Docker \u5b98\u65b9\u4ed3\u5e93\u7684\u5730\u5740&#xff0c;\u9002\u7528\u4e8e CentOS \u7cfb\u7edf\u3002<\/li>\n<\/ul>\n<p>\u8fd0\u884c\u8be5\u547d\u4ee4\u540e&#xff0c;Docker \u7684\u8f6f\u4ef6\u6e90\u5c06\u4f1a\u88ab\u6dfb\u52a0\u5230 yum \u7684\u4ed3\u5e93\u5217\u8868\u4e2d&#xff0c;\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u901a\u8fc7 yum \u5b89\u88c5 Docker\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"75\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418193629-6802a9bd1cb36.png\" width=\"807\" \/><\/p>\n<h6>4\u3001\u5728 CentOS \u7cfb\u7edf\u4e0a\u5b89\u88c5 Docker \u76f8\u5173\u7684\u8f6f\u4ef6\u5305<\/h6>\n<ul>\n<li>docker-ce&#xff1a;Docker \u793e\u533a\u7248&#xff08;Community Edition&#xff09;&#xff0c;\u662f Docker \u7684\u6838\u5fc3\u7ec4\u4ef6&#xff0c;\u63d0\u4f9b\u4e86\u5bb9\u5668\u7684\u8fd0\u884c\u73af\u5883\u3002<\/li>\n<li>docker-ce-cli&#xff1a;Docker \u547d\u4ee4\u884c\u5de5\u5177&#xff0c;\u7528\u4e8e\u4e0e Docker \u5f15\u64ce\u8fdb\u884c\u4ea4\u4e92&#xff0c;\u6bd4\u5982\u6784\u5efa\u3001\u8fd0\u884c\u548c\u7ba1\u7406\u5bb9\u5668\u3002<\/li>\n<li>containerd.io&#xff1a;\u8fd9\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u5bb9\u5668\u8fd0\u884c\u65f6&#xff0c;\u7528\u4e8e\u7ba1\u7406\u5bb9\u5668\u7684\u751f\u547d\u5468\u671f&#xff0c;Docker \u5f15\u64ce\u672c\u8eab\u5c31\u662f\u57fa\u4e8e containerd \u6765\u7ba1\u7406\u5bb9\u5668\u7684\u3002<\/li>\n<\/ul>\n<p>\u4f7f\u7528 -y \u53c2\u6570\u8868\u793a\u81ea\u52a8\u786e\u8ba4\u6240\u6709\u5b89\u88c5\u64cd\u4f5c&#xff0c;\u65e0\u9700\u7528\u6237\u624b\u52a8\u8f93\u5165\u786e\u8ba4\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"544\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418193629-6802a9bd39d46.png\" width=\"1795\" \/><\/p>\n<h6>5\u3001\u542f\u52a8\u5e76\u9a8c\u8bc1 Docker \u662f\u5426\u5b89\u88c5\u6210\u529f<\/h6>\n<ul>\n<li>\n<p>\u542f\u52a8 Docker \u670d\u52a1&#xff1a;<\/p>\n<p> systemctl start docker <\/li>\n<li>\n<p>\u8bbe\u7f6e Docker \u5f00\u673a\u81ea\u542f&#xff1a;<\/p>\n<p> systemctl enable docker <\/li>\n<li>\n<p>\u9a8c\u8bc1 Docker \u5b89\u88c5\u662f\u5426\u6210\u529f&#xff1a;<\/p>\n<p> docker &#8211;version <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"353\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418193629-6802a9bda8306.png\" width=\"283\" \/><\/p>\n<\/li>\n<\/ul>\n<h6 id=\"rpeeX\">6\u3001\u6ce8\u610f&#xff1a;<\/h6>\n<p id=\"u8add1ee9\">docker \u518d 2024 5 \u6708\u53d1\u751f\u4e86\u56fd\u5185\u88ab\u5899\u4e8b\u4ef6&#xff0c;\u8bf7\u5207\u6362\u955c\u50cf\u6e90<\/p>\n<p id=\"u46de7099\">GitHub &#8211; DaoCloud\/public-image-mirror: \u5f88\u591a\u955c\u50cf\u90fd\u5728\u56fd\u5916\u3002\u6bd4\u5982 gcr \u3002\u56fd\u5185\u4e0b\u8f7d\u5f88\u6162&#xff0c;\u9700\u8981\u52a0\u901f\u3002\u81f4\u529b\u4e8e\u63d0\u4f9b\u8fde\u63a5\u5168\u4e16\u754c\u7684\u7a33\u5b9a\u53ef\u9760\u5b89\u5168\u7684\u5bb9\u5668\u955c\u50cf\u670d\u52a1\u3002<\/p>\n<p id=\"ube51131b\">\u603b\u4e4b\u5c31\u662f\u5728\u7f51\u4e0a\u641c\u53ef\u7528\u7684\u955c\u50cf\u6e90\u3002\u6709\u6761\u4ef6\u7684\u53ef\u4ee5\u7528\u68af\u5b50 &#xff01;&#xff01;&#xff01;\u6211\u63a8\u8350\u76f4\u63a5\u4f7f\u7528\u963f\u91cc\u4e91\u7684\u955c\u50cf\u52a0\u901f\u5668&#xff0c;\u5305\u62ec\u91cc\u9762\u7684\u4ee3\u7801\u76f4\u63a5\u8fd0\u884c\u5373\u53ef&#xff08;\u8c8c\u4f3c\u53ea\u6709\u963f\u91cc\u4e91\u670d\u52a1\u5668\u597d\u7528&#xff09;\u4eb2\u6d4b\u6709\u6548<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"925\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418193629-6802a9bdcb3e8.png\" width=\"1910\" \/><\/p>\n<p>\u8fd8\u6709\u5176\u4ed6\u5c0f\u4f19\u4f34\u63d0\u4f9b\u7684<\/p>\n<p>tee \/etc\/docker\/daemon.json &lt;&lt;-&#039;EOF&#039;<br \/>\n{<br \/>\n  &#034;registry-mirrors&#034;: [&#034;https:\/\/docker.rainbond.cc&#034;]<br \/>\n}<br \/>\nEOF<\/p>\n<p>systemctl daemon-reload<br \/>\nsystemctl restart docker <\/p>\n<p>ps&#xff1a;\u540e\u7eed\u8fd8\u4f1a\u6709\u5305\u62ec\u670d\u52a1\u5668\u4e00\u4e9b\u5e38\u7528\u7684\u5b89\u88c5\u5305\u4ee5\u53cadocker\u5b89\u88c5mysql\u3001redis\u3001mq\u4ee5\u53ca\u5176\u4ed6\u63d2\u4ef6\u7684\u8be6\u7ec6\u6559\u7a0b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb900\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u767b\u5f55\u6210\u529f\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\u3002\u9996\u5148\uff0c\u83b7\u53d6\u4f60\u5b9e\u4f8b\u7684\u516c\u7f51 IP \u5730\u5740\uff0c\u7136\u540e\u901a\u8fc7 SSH \u5ba2\u6237\u7aef\u8fde\u63a5\uff08\u5728 Windows \u4e0a\u53ef\u4ee5\u4f7f\u7528\u3002\u5982\u679c\u4e0d\u60f3\u4f53\u9a8c docker \u5b89\u88c5\uff0c\u53ef\u4ee5\u5728\u5b98\u7f51\u76f4\u63a5\u914d\u7f6e\u5e26\u6709Docker\u7684\u6e90\u3002\u963f\u91cc\u4e91\u4e5f\u652f\u6301\u7f51\u9875\u767b\u5f55\uff0c\u6709AI\u52a9\u624b\u975e\u5e38\u65b9\u4fbf\uff08\u5efa\u8bae\u4ee5\u516c\u7f51IP\u767b\u5f55\uff0c\u79c1\u7f51IP\u662f\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u8baf\uff09\uff0c\u4f46\u662f\u8981\u6ce8\u610f\u7684\u662f\uff0c\uff1a\u63d0\u4f9b\u4e86\u8bbe\u5907\u6620\u5c04\u529f\u80fd\u6240\u9700\u7684\u5e93\u548c\u5de5\u5177\uff0c\u4e3b\u8981\u7528\u4e8e\u5728 Linux \u7cfb\u7edf\u4e2d\u521b\u5efa\u548c\u7ba1\u7406\u903b\u8f91\u5377\uff08LVM\uff09\u3002\uff1a\u63d0\u4f9b\u4e86 LVM\uff08\u903b\u8f91\u5377\u7ba1\u7406\u5668\uff09\u6240\u9700\u7684\u5de5\u5177\u548c\u5e93\uff0c\u7528\u4e8e\u521b\u5efa\u3001\u8c03\u6574\u3001\u5220\u9664\u903b\u8f91\u5377\u3002_\u670d\u52a1\u5668\u90e8\u7f72docker<\/p>\n","protected":false},"author":2,"featured_media":20702,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,43,44],"topic":[],"class_list":["post-20708","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72Docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/20708.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72Docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb900\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u767b\u5f55\u6210\u529f\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\u3002\u9996\u5148\uff0c\u83b7\u53d6\u4f60\u5b9e\u4f8b\u7684\u516c\u7f51 IP \u5730\u5740\uff0c\u7136\u540e\u901a\u8fc7 SSH \u5ba2\u6237\u7aef\u8fde\u63a5\uff08\u5728 Windows \u4e0a\u53ef\u4ee5\u4f7f\u7528\u3002\u5982\u679c\u4e0d\u60f3\u4f53\u9a8c docker \u5b89\u88c5\uff0c\u53ef\u4ee5\u5728\u5b98\u7f51\u76f4\u63a5\u914d\u7f6e\u5e26\u6709Docker\u7684\u6e90\u3002\u963f\u91cc\u4e91\u4e5f\u652f\u6301\u7f51\u9875\u767b\u5f55\uff0c\u6709AI\u52a9\u624b\u975e\u5e38\u65b9\u4fbf\uff08\u5efa\u8bae\u4ee5\u516c\u7f51IP\u767b\u5f55\uff0c\u79c1\u7f51IP\u662f\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u8baf\uff09\uff0c\u4f46\u662f\u8981\u6ce8\u610f\u7684\u662f\uff0c\uff1a\u63d0\u4f9b\u4e86\u8bbe\u5907\u6620\u5c04\u529f\u80fd\u6240\u9700\u7684\u5e93\u548c\u5de5\u5177\uff0c\u4e3b\u8981\u7528\u4e8e\u5728 Linux \u7cfb\u7edf\u4e2d\u521b\u5efa\u548c\u7ba1\u7406\u903b\u8f91\u5377\uff08LVM\uff09\u3002\uff1a\u63d0\u4f9b\u4e86 LVM\uff08\u903b\u8f91\u5377\u7ba1\u7406\u5668\uff09\u6240\u9700\u7684\u5de5\u5177\u548c\u5e93\uff0c\u7528\u4e8e\u521b\u5efa\u3001\u8c03\u6574\u3001\u5220\u9664\u903b\u8f91\u5377\u3002_\u670d\u52a1\u5668\u90e8\u7f72docker\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/20708.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T19:36:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418193628-6802a9bcd20e8.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/20708.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/20708.html\",\"name\":\"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72Docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T19:36:31+00:00\",\"dateModified\":\"2025-04-18T19:36:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/20708.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/20708.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/20708.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72Docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72Docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/20708.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72Docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb900\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u767b\u5f55\u6210\u529f\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\u3002\u9996\u5148\uff0c\u83b7\u53d6\u4f60\u5b9e\u4f8b\u7684\u516c\u7f51 IP \u5730\u5740\uff0c\u7136\u540e\u901a\u8fc7 SSH \u5ba2\u6237\u7aef\u8fde\u63a5\uff08\u5728 Windows \u4e0a\u53ef\u4ee5\u4f7f\u7528\u3002\u5982\u679c\u4e0d\u60f3\u4f53\u9a8c docker \u5b89\u88c5\uff0c\u53ef\u4ee5\u5728\u5b98\u7f51\u76f4\u63a5\u914d\u7f6e\u5e26\u6709Docker\u7684\u6e90\u3002\u963f\u91cc\u4e91\u4e5f\u652f\u6301\u7f51\u9875\u767b\u5f55\uff0c\u6709AI\u52a9\u624b\u975e\u5e38\u65b9\u4fbf\uff08\u5efa\u8bae\u4ee5\u516c\u7f51IP\u767b\u5f55\uff0c\u79c1\u7f51IP\u662f\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u8baf\uff09\uff0c\u4f46\u662f\u8981\u6ce8\u610f\u7684\u662f\uff0c\uff1a\u63d0\u4f9b\u4e86\u8bbe\u5907\u6620\u5c04\u529f\u80fd\u6240\u9700\u7684\u5e93\u548c\u5de5\u5177\uff0c\u4e3b\u8981\u7528\u4e8e\u5728 Linux \u7cfb\u7edf\u4e2d\u521b\u5efa\u548c\u7ba1\u7406\u903b\u8f91\u5377\uff08LVM\uff09\u3002\uff1a\u63d0\u4f9b\u4e86 LVM\uff08\u903b\u8f91\u5377\u7ba1\u7406\u5668\uff09\u6240\u9700\u7684\u5de5\u5177\u548c\u5e93\uff0c\u7528\u4e8e\u521b\u5efa\u3001\u8c03\u6574\u3001\u5220\u9664\u903b\u8f91\u5377\u3002_\u670d\u52a1\u5668\u90e8\u7f72docker","og_url":"https:\/\/www.wsisp.com\/helps\/20708.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T19:36:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418193628-6802a9bcd20e8.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/20708.html","url":"https:\/\/www.wsisp.com\/helps\/20708.html","name":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72Docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T19:36:31+00:00","dateModified":"2025-04-18T19:36:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/20708.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/20708.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/20708.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72Docker"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/20708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=20708"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/20708\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/20702"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=20708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=20708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=20708"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=20708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}