{"id":27746,"date":"2025-04-19T21:06:18","date_gmt":"2025-04-19T13:06:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/27746.html"},"modified":"2025-04-19T21:06:18","modified_gmt":"2025-04-19T13:06:18","slug":"windows-server%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85docker","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/27746.html","title":{"rendered":"\u200bWindows Server\u670d\u52a1\u5668\u5b89\u88c5Docker\u200b"},"content":{"rendered":"<h2>winServer2016\u5b89\u88c5docker<\/h2>\n<p>\u5728\u4e0d\u8054\u7f51\u7684\u60c5\u51b5\u4e0b\u5728Windows Server2016\u670d\u52a1\u5668\u4e0a\u5b89\u88c5Docker&#xff0c;\u6709\u7f51\u7684\u60c5\u51b5\u53ef\u4ee5\u7528\u547d\u4ee4\u5b89\u88c5&#xff0c;\u53c2\u8003\u5730\u5740\u51c6\u5907 Windows \u64cd\u4f5c\u7cfb\u7edf\u5bb9\u5668 | Microsoft Learn<\/p>\n<p>docker\u5728windows\u4e0a\u6709\u4e24\u79cd\u7248\u672c&#xff0c;docker for desktop\u9002\u7528\u4e8ewin10\u7684\u4e00\u4e9b\u5ba2\u6237\u7aef\u7248\u672c&#xff0c;\u8fd8\u6709\u4e00\u4e2aee\u7248\u672c\u7528\u4e8ewindows Server\u3002<\/p>\n<\/p>\n<p>1.\u4e0b\u8f7dee\u7248\u672c\u7684Windows Server,\u5730\u5740\u5982\u4e0b<\/p>\n<p>https:\/\/download.docker.com\/win\/static\/stable\/x86_64\/docker-24.0.5.zip<\/p>\n<p>2.\u5c06\u4e0b\u8f7d\u540e\u7684\u6587\u4ef6\u89e3\u538b\u62f7\u8d1d\u5230\u5982\u4e0b\u76ee\u5f55<\/p>\n<p>C:\\\\Program Files\\\\Docker<\/p>\n<p>3.\u914d\u7f6edaemon.json\u6587\u4ef6 \u521b\u5efa C:\\\\ProgramData\\\\Docker\\\\config \u76ee\u5f55&#xff0c;\u5728config\u76ee\u5f55\u4e0b\u521b\u5efa daemon.json \u6587\u4ef6&#xff0c;\u5176\u5185\u5bb9\u53ef\u4e3a<\/p>\n<p>\u00a0{ &#034;insecure-registries&#034;:[] }<\/p>\n<p>4.\u6dfb\u52a0\u4e0a\u9762\u76ee\u5f55\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cfPath<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"603\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130614-68039fc640e5f.png\" width=\"633\" \/><\/p>\n<p>5.\u5728\u670d\u52a1\u5668\u7ba1\u7406\u5668\u91cc\u6dfb\u52a0\u89d2\u8272\u548c\u529f\u80fd\u9009\u9879\u4e0b\u7684\u529f\u80fd\u83dc\u5355\u9009\u62e9\u5bb9\u5668&#xff0c;\u5b89\u88c5\u540e\u9700\u8981\u91cd\u542f\u670d\u52a1\u5668\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"543\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130614-68039fc66b82a.png\" width=\"1009\" \/><\/p>\n<p>6.\u5c06docker\u6ce8\u518c\u4e3a\u670d\u52a1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"96\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130614-68039fc6aa5e8.png\" width=\"866\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"56\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130614-68039fc6cf24d.png\" width=\"285\" \/><\/p>\n<p>7.\u91cd\u542fdocker\u670d\u52a1<\/p>\n<p># \u91cd\u542fdocker\u670d\u52a1&#xff08;\u901a\u8fc7PowerShell\u8fd0\u884c\u91cd\u542f\u547d\u4ee4&#xff09;<\/p>\n<p>Restart-Service docker<\/p>\n<p># \u67e5\u770b\u91cd\u542f\u540e\u7684\u914d\u7f6e docker info<\/p>\n<p>\u00a0<\/p>\n<h2 style=\"background-color:transparent\">win10\u5b89\u88c5docker<\/h2>\n<h3>win10\u5b89\u88c5docker&#xff0c;\u524d\u63d0\u5fc5\u987b\u662f\u8981\u5b89\u88c5WSL2\u3002<\/h3>\n<p>\u73b0\u5728Docker Desktop\u9ed8\u8ba4\u4f7f\u7528WSL 2\u6765\u8fd0\u884c&#xff0c;\u800c\u4e0d\u662f\u4ee5\u524d\u7684Hyper-V\u3002<\/p>\n<p>WSL2 \u5168\u79f0\u662fWindows Subsystem on Linux\u3002\u610f\u601d\u662f&#xff0c;\u5728win10&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u542f\u52a8\u4e00\u4e2aLinux\u3002\u56e0\u4e3adocker\u4f9d\u8d56Linux\u5185\u6838\u3002<\/p>\n<p>\u53ef\u67e5\u770b\u5730\u5740<\/p>\n<p>\u65e7\u7248 WSL \u7684\u624b\u52a8\u5b89\u88c5\u6b65\u9aa4 | Microsoft Learn<\/p>\n<p>\u4e0a\u9762\u5730\u5740\u7684\u6b65\u9aa41\u30012\u30013\u53ef\u4ee5\u76f4\u63a5\u5ffd\u7565&#xff0c;\u76f4\u63a5\u5230\u6b65\u9aa44\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"375\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130614-68039fc6ede1e.png\" width=\"727\" \/><\/p>\n<p>\u70b9\u51fb\u4e0b\u8f7d\u6700\u65b0\u7684\u66f4\u65b0\u5305&#xff0c;\u4e0b\u597d\u540e\u53cc\u51fb\u8fd0\u884c\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<h3>\u6253\u5f00\u7cfb\u7edf\u865a\u62df\u673a\u5e73\u53f0\u548cWSL<\/h3>\n<p>\u63a7\u5236\u9762\u677f-&gt;\u7a0b\u5e8f-&gt;\u542f\u7528\u6216\u5173\u95edWindows\u529f\u80fd<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"125\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130615-68039fc720355.png\" width=\"709\" \/><\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"534\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130615-68039fc741076.png\" width=\"509\" \/><\/p>\n<p>\u9009\u4e2d\u8fd9\u4e24\u4e2a\u3002\u53ef\u80fd\u4f1a\u63d0\u793a\u91cd\u65b0\u542f\u52a8\u7535\u8111\u7684\u3002\u5c31\u91cd\u542f\u5427\u3002<\/p>\n<h3>\u901a\u8fc7 \u7ba1\u7406\u5458\u8eab\u4efd \u8fd0\u884cWindows PowerShell&#xff0c;\u5c06WSL2\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u7248\u672c<\/h3>\n<p>wsl &#8211;set-default-version 2 <\/p>\n<h3>\u53bbdocker\u5b98\u7f51\u4e0b\u8f7d &#xff0c;\u684c\u9762\u7248docker&#xff0c; \u4e0b\u597d\u540e\u76f4\u63a5\u53cc\u51fb\u8fd0\u884c\u5b89\u88c5\u5373\u53ef<\/h3>\n<p>Docker: Accelerated, Containerized Application Development<\/p>\n<p>\u5b89\u88c5\u6210\u529f\u540edocker\u684c\u9762\u7248\u754c\u9762<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"720\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130615-68039fc76a1c9.png\" width=\"1200\" \/><\/p>\n<\/p>\n<p>\u5b89\u88c5\u6210\u529f\u540e&#xff0c;\u5728power shell \u8f93\u5165 docker version&#xff0c;\u67e5\u770b\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"526\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130615-68039fc7d09a3.png\" width=\"490\" \/><\/p>\n<p>***<\/p>\n<p>\u6253\u5f00\u540e\u5982\u679c\u5f39\u51fa\u5982\u4e0b\u9519\u8bef&#xff0c;\u5219\u66f4\u65b0WSL&#xff1a;<\/p>\n<p>wsl &#8211;update <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"252\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130616-68039fc805aec.png\" width=\"834\" \/><\/p>\n<p>\u91cd\u65b0\u6253\u5f00\u540e\u6b63\u5e38\u542f\u52a8\u3002<\/p>\n<h3>\u66f4\u6539\u955c\u50cf\u6e90&#xff0c; \u8bf4\u6539\u4e86\u4f1a\u66f4\u5feb&#xff0c;\u6ca1\u6709\u5b9e\u6d4b<\/h3>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"440\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130616-68039fc832405.png\" width=\"964\" \/><\/p>\n<p>&#034;registry-mirrors&#034;: [<br \/>\n    &#034;https:\/\/docker.mirrors.ustc.edu.cn&#034;,<br \/>\n    &#034;https:\/\/hub-mirror.c.163.com&#034;<br \/>\n  ] <\/p>\n<p>\u4e5f\u53ef\u4ee5\u7528\u963f\u91cc\u4e91&#xff0c;\u9700\u8981\u5230\u963f\u91cc\u4e91\u5b98\u7f51\u83b7\u53d6\u3002\u53ef\u4ee5\u67e5\u770b\u5176\u4ed6\u5e16\u5b50\u3002<\/p>\n<p>\u5f53\u914d\u7f6e\u67d0\u4e00\u4e2a\u955c\u50cf\u6e90\u5730\u5740\u4e4b\u540e&#xff0c;\u82e5\u53d1\u73b0\u62c9\u53d6\u4e0d\u5230\u955c\u50cf&#xff0c;\u5207\u6362\u4e00\u4e2a\u5730\u5740\u5c31\u884c\u3002<\/p>\n<h3>\u5907\u4efd\u5bfc\u51fa\u6570\u636e\u53ca\u8fd8\u539f\u6570\u636e<\/h3>\n<p>Windows\u7248\u672c&#xff08;Windows 10&#xff09;WSL 2 \u7248\u672c docker \u9ed8\u8ba4\u7a0b\u5e8f\u5b89\u88c5\u5230c\u76d8&#xff0c;\u6570\u636e\u5b58\u653e\u4e8e C:\\\\Users\\\\\u5f53\u524d\u7528\u6237\u540d\\\\AppData\\\\Local\\\\Docker\\\\wsl\\\\data\\\\ext4.vhdx \u8fd9\u6837\u4f1a\u5bfc\u81f4docker\u4f7f\u7528\u91cf\u4e0a\u53bbC\u76d8\u7684\u7a7a\u95f4\u8d8a\u6765\u8d8a\u5927\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u6211\u4eec\u4e00\u822c\u4e60\u60ef\u6027\u5c06\u6570\u636e\u90e8\u5206\u79fb\u52a8\u5230\u5176\u4ed6\u76d8\u3002<\/p>\n<p>\u53ef\u53c2\u8003\u8fd9\u4f4d\u5927\u4f6c<\/p>\n<p>https:\/\/www.cnblogs.com\/shanyou\/p\/14284309.html<\/p>\n<p>\u505c\u6b62docker\u670d\u52a1&#xff0c;\u70b9\u51fbdocker\u56fe\u6807&#xff0c;\u5728\u7535\u8111\u5c4f\u5e55\u5e95\u90e8\u53f3\u4fa7&#xff0c;\u53f3\u51fb\u56fe\u6807<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"486\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130616-68039fc86855f.png\" width=\"315\" \/><\/p>\n<p>\u5907\u4efd\u6570\u636e\u5230\u53e6\u4e00\u4e2a\u6587\u4ef6\u5939<\/p>\n<p>PowerShell\u8fd0\u884c&#xff0c;\u524d\u63d0\u5148\u65b0\u5efa\u4e00\u4e2aDocker\u6587\u4ef6\u5939<\/p>\n<p>wsl &#8211;export docker-desktop-data &#034;E:\\\\Docker\\\\docker-desktop-data.tar&#034;<\/p>\n<p>\u547d\u4ee4\u8bf4\u660e&#xff1a;\u5c06\u76ee\u524d\u5df2\u6709\u7684\u6570\u636e\u5907\u4efd\u5230E:\\\\Docker\u76ee\u5f55\u4e0b&#xff0c;\u5e76\u547d\u540d\u4e3adocker-desktop-data.tar <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"62\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130616-68039fc88da0a.png\" width=\"690\" \/><\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"115\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130616-68039fc8ae09b.png\" width=\"783\" \/><\/p>\n<p>\u5220\u9664\u539f\u6709\u6570\u636e&#xff0c;\u6570\u636e\u672a\u5907\u4efd\u524d\u8bf7\u8c28\u614e\u64cd\u4f5c<\/p>\n<p>wsl &#8211;unregister docker-desktop-data<\/p>\n<p>\u8bf4\u660e&#xff1a;\u89e3\u9664\u5f53\u524d\u7684docker \u6570\u636e\u865a\u62df\u76d8\u6620\u5c04&#xff0c;\u8be5\u64cd\u4f5c\u540e\u4f1a\u5220\u9664\u539f\u6709\u7684ext4.vhdx <\/p>\n<p>\u66f4\u6539\u6570\u636e\u5b58\u50a8\u76d8\u5e76\u6062\u590d\u6570\u636e<\/p>\n<p>wsl &#8211;import docker-desktop-data &#034;E:\\\\Docker&#034; &#034;E:\\\\Docker\\\\docker-desktop-data.tar&#034; &#8211;version 2<\/p>\n<p>\u8bf4\u660e&#xff1a;\u5c06\u5907\u4efd\u6570\u636e\u5bfc\u5165\u5230\u65b0\u7684\u865a\u62df\u76d8&#xff0c;\u4e14\u6307\u5b9a\u865a\u62df\u76d8\u7684\u5b58\u653e\u8def\u5f84\u4e3aE:\\\\Docker&#xff0c;\u5bfc\u5165\u5b8c\u6210\u540e\u5728\u8be5\u76ee\u5f55\u4e0b\u4f1a\u5b58\u5728\u4e00\u4e2aext4.vhdx\u7684\u865a\u62df\u78c1\u76d8\u8def\u5f84 <\/p>\n<p>\u6700\u540e\u542f\u52a8docker\u5373\u53ef&#xff0c;\u8fd9\u6837\u5c31\u628a\u5b58\u50a8\u8f6c\u79fb\u4e86\u3002<\/p>\n<\/p>\n<h2 style=\"background-color:transparent\">winServer2019\u5b89\u88c5docker<\/h2>\n<h3>\u5b89\u88c5\u73af\u5883<\/h3>\n<li>\u5982\u679cwinServer2019\u662f\u865a\u62df\u673a&#xff0c;\u8981\u5f00\u542f\u5d4c\u5957\u865a\u62df\u5316\u529f\u80fd<\/li>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"278\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130616-68039fc8d2f33.png\" width=\"343\" \/><\/p>\n<li>\u5f00\u542fHyper-V<\/li>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"397\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130617-68039fc904ac4.png\" width=\"731\" \/><\/p>\n<li>\u5f00\u542f\u9002\u7528\u4e8e Linux \u7684 Windows \u5b50\u7cfb\u7edf<\/li>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"615\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130617-68039fc92cca8.png\" width=\"924\" \/><\/p>\n<li>\u67e5\u770bwsl\u662f\u5426\u5b89\u88c5<\/li>\n<p>\u76f4\u63a5\u5728 cmd \u6216 powershell \u4e2d\u8f93\u5165wsl \u547d\u4ee4\u6765\u68c0\u67e5\u662f\u5426\u672c\u673a\u5f00\u542f wsl \u670d\u52a1<\/p>\n<p>\u672a\u5b89\u88c5\u6210\u529f&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"89\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130617-68039fc96db36.png\" width=\"452\" \/><\/p>\n<p>\u5b89\u88c5\u6210\u529f&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"177\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130617-68039fc98efa4.png\" width=\"545\" \/><\/p>\n<h3>\u56fe\u5f62\u5316\u754c\u9762\u4e0b\u8f7d\u3001\u5b89\u88c5docker<\/h3>\n<li>\u4e0b\u8f7d<\/li>\n<p>Get Docker | Docker Docs<\/p>\n<p>\u9009\u62e9windows\u7248\u4e0b\u8f7d<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"577\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130617-68039fc9b38c5.png\" width=\"949\" \/><\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"144\" src=\"2025-04-195ahjmy5p02v.png\" width=\"349\" \/><\/p>\n<li>\u5b89\u88c5<\/li>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"534\" src=\"2025-04-19ulyha1zbyvf.png\" width=\"841\" \/><\/p>\n<p>\u70b9\u51fb\u4e0b\u56fe\u4e2d\u7684\u6309\u94ae&#xff0c;\u91cd\u542f\u7535\u8111<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"463\" src=\"2025-04-19pgjv3ocq2nt.png\" width=\"863\" \/><\/p>\n<h2 style=\"background-color:transparent\">\u5b89\u88c5jdk<\/h2>\n<h3>\u5b89\u88c5<\/h3>\n<p>\u8def\u5f84\u5982\u4e0b<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"138\" src=\"2025-04-19ud4fd2mp35y.png\" width=\"508\" \/><\/p>\n<h3>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<p>\u73af\u5883\u53d8\u91cf\u914d\u7f6e&#xff1a;<\/p>\n<p>1\u3001 JAVA_HOME,\u9700\u8981\u65b0\u5efa\u3002<\/p>\n<p>\u53d8\u91cf\u540d&#xff1a;JAVA_HOME<\/p>\n<p>\u53d8\u91cf\u503c&#xff1a;C:\\\\soft\\\\Java\\\\jdk1.8\\\\jdk &#xff08;\u6ce8\u610f&#xff1a;\u586b\u5165\u4f60\u7684JDK\u8def\u5f84&#xff09;<\/p>\n<\/p>\n<p>2\u3001 ClassPath&#xff0c;\u9700\u8981\u65b0\u5efa\u3002<\/p>\n<p>\u53d8\u91cf\u540d&#xff1a;ClassPath<\/p>\n<p>\u53d8\u91cf\u503c&#xff1a;.;%JAVA_HOME%\\\\lib\\\\dt.jar;%JAVA_HOME%\\\\lib\\\\tools.jar &#xff08;\u6ce8\u610f&#xff1a;\u8fd9\u524d\u9762\u76f8\u540c\u7684\u90e8\u5206\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84&#xff0c;\u5229\u7528%JAVA_HOME%\u5f15\u5165\u4e0a\u9762\u90a3\u4e00\u90e8\u5206&#xff09;<\/p>\n<p>\u7279\u522b\u6ce8\u610f\u7684\u662f&#xff1a;\u524d\u9762\u7684\u70b9\u53f7\u548c\u5206\u53f7&#xff0c;\u4e00\u70b9\u4e0d\u80fd\u9519&#xff0c;\u4e0d\u80fd\u662f\u4e2d\u6587\u3002<\/p>\n<\/p>\n<p>3\u3001 Path&#xff0c;\u7cfb\u7edf\u672c\u8eab\u5c31\u6709&#xff0c;\u65e0\u9700\u65b0\u5efa\u3002<\/p>\n<p>\u53d8\u91cf\u540d&#xff1a;Path<\/p>\n<p>\u53d8\u91cf\u503c&#xff1a;%JAVA_HOME%\\\\bin<\/p>\n<p>\u5b8c\u6210\u8fd9\u4e00\u6b65&#xff0c;\u73af\u5883\u7684\u914d\u7f6e\u5c31\u597d\u4e86\u3002<\/p>\n<h2 style=\"background-color:transparent\">\u5b89\u88c5redis<\/h2>\n<p>\u8fdb\u5165redis\u5b89\u88c5\u76ee\u5f55<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"457\" src=\"2025-04-19nb0jwidtdmb.png\" width=\"670\" \/><\/p>\n<p>\u5b89\u88c5\u670d\u52a1&#xff1a;&#096;redis-server.exe &#8211;service-install redis.windows.conf &#8211;service-name redisserver &#8211;loglevel verbose&#096;<\/p>\n<p>\u542f\u52a8\u670d\u52a1&#xff1a;&#096;redis-server.exe &#8211;service-start &#8211;service-name redisserver&#096;<\/p>\n<p>\u505c\u6b62\u670d\u52a1&#xff1a;&#096;redis-server.exe &#8211;service-stop &#8211;service-name redisserver&#096;<\/p>\n<p>\u5378\u8f7d\u670d\u52a1&#xff1a;&#096;redis-server.exe &#8211;service-uninstall &#8211;service-name redisserver&#096;<\/p>\n<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7.8k\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf22\u6b21\u3002docker\u5728windows\u4e0a\u6709\u4e24\u79cd\u7248\u672c\uff0cdocker for desktop\u9002\u7528\u4e8ewin10\u7684\u4e00\u4e9b\u5ba2\u6237\u7aef\u7248\u672c\uff0c\u8fd8\u6709\u4e00\u4e2aee\u7248\u672c\u7528\u4e8ewindows Server\u3002\u521b\u5efa C:\\\\ProgramData\\\\Docker\\\\config \u76ee\u5f55\uff0c\u5728config\u76ee\u5f55\u4e0b\u521b\u5efa daemon.json \u6587\u4ef6\uff0c\u5176\u5185\u5bb9\u53ef\u4e3a\u30025.\u5728\u670d\u52a1\u5668\u7ba1\u7406\u5668\u91cc\u6dfb\u52a0\u89d2\u8272\u548c\u529f\u80fd\u9009\u9879\u4e0b\u7684\u529f\u80fd\u83dc\u5355\u9009\u62e9\u5bb9\u5668\uff0c\u5b89\u88c5\u540e\u9700\u8981\u91cd\u542f\u670d\u52a1\u5668\u3002# \u91cd\u542fdocker\u670d\u52a1\uff08\u901a\u8fc7PowerShell\u8fd0\u884c\u91cd\u542f\u547d\u4ee4\uff09\uff0c\u6709\u7f51\u7684\u60c5\u51b5\u53ef\u4ee5\u7528\u547d\u4ee4\u5b89\u88c5\uff0c\u53c2\u8003\u5730\u5740\u3002# \u67e5\u770b\u91cd\u542f\u540e\u7684\u914d\u7f6e\u3002_windows server \u5b89\u88c5docker<\/p>\n","protected":false},"author":2,"featured_media":27726,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27],"topic":[],"class_list":["post-27746","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u200bWindows Server\u670d\u52a1\u5668\u5b89\u88c5Docker\u200b - \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\/27746.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u200bWindows Server\u670d\u52a1\u5668\u5b89\u88c5Docker\u200b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7.8k\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf22\u6b21\u3002docker\u5728windows\u4e0a\u6709\u4e24\u79cd\u7248\u672c\uff0cdocker for desktop\u9002\u7528\u4e8ewin10\u7684\u4e00\u4e9b\u5ba2\u6237\u7aef\u7248\u672c\uff0c\u8fd8\u6709\u4e00\u4e2aee\u7248\u672c\u7528\u4e8ewindows Server\u3002\u521b\u5efa C:\\ProgramData\\Docker\\config \u76ee\u5f55\uff0c\u5728config\u76ee\u5f55\u4e0b\u521b\u5efa daemon.json \u6587\u4ef6\uff0c\u5176\u5185\u5bb9\u53ef\u4e3a\u30025.\u5728\u670d\u52a1\u5668\u7ba1\u7406\u5668\u91cc\u6dfb\u52a0\u89d2\u8272\u548c\u529f\u80fd\u9009\u9879\u4e0b\u7684\u529f\u80fd\u83dc\u5355\u9009\u62e9\u5bb9\u5668\uff0c\u5b89\u88c5\u540e\u9700\u8981\u91cd\u542f\u670d\u52a1\u5668\u3002# \u91cd\u542fdocker\u670d\u52a1\uff08\u901a\u8fc7PowerShell\u8fd0\u884c\u91cd\u542f\u547d\u4ee4\uff09\uff0c\u6709\u7f51\u7684\u60c5\u51b5\u53ef\u4ee5\u7528\u547d\u4ee4\u5b89\u88c5\uff0c\u53c2\u8003\u5730\u5740\u3002# \u67e5\u770b\u91cd\u542f\u540e\u7684\u914d\u7f6e\u3002_windows server \u5b89\u88c5docker\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/27746.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-19T13:06:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130614-68039fc640e5f.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/27746.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/27746.html\",\"name\":\"\u200bWindows Server\u670d\u52a1\u5668\u5b89\u88c5Docker\u200b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T13:06:18+00:00\",\"dateModified\":\"2025-04-19T13:06:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/27746.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/27746.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/27746.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u200bWindows Server\u670d\u52a1\u5668\u5b89\u88c5Docker\u200b\"}]},{\"@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":"\u200bWindows Server\u670d\u52a1\u5668\u5b89\u88c5Docker\u200b - \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\/27746.html","og_locale":"zh_CN","og_type":"article","og_title":"\u200bWindows Server\u670d\u52a1\u5668\u5b89\u88c5Docker\u200b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7.8k\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf22\u6b21\u3002docker\u5728windows\u4e0a\u6709\u4e24\u79cd\u7248\u672c\uff0cdocker for desktop\u9002\u7528\u4e8ewin10\u7684\u4e00\u4e9b\u5ba2\u6237\u7aef\u7248\u672c\uff0c\u8fd8\u6709\u4e00\u4e2aee\u7248\u672c\u7528\u4e8ewindows Server\u3002\u521b\u5efa C:\\ProgramData\\Docker\\config \u76ee\u5f55\uff0c\u5728config\u76ee\u5f55\u4e0b\u521b\u5efa daemon.json \u6587\u4ef6\uff0c\u5176\u5185\u5bb9\u53ef\u4e3a\u30025.\u5728\u670d\u52a1\u5668\u7ba1\u7406\u5668\u91cc\u6dfb\u52a0\u89d2\u8272\u548c\u529f\u80fd\u9009\u9879\u4e0b\u7684\u529f\u80fd\u83dc\u5355\u9009\u62e9\u5bb9\u5668\uff0c\u5b89\u88c5\u540e\u9700\u8981\u91cd\u542f\u670d\u52a1\u5668\u3002# \u91cd\u542fdocker\u670d\u52a1\uff08\u901a\u8fc7PowerShell\u8fd0\u884c\u91cd\u542f\u547d\u4ee4\uff09\uff0c\u6709\u7f51\u7684\u60c5\u51b5\u53ef\u4ee5\u7528\u547d\u4ee4\u5b89\u88c5\uff0c\u53c2\u8003\u5730\u5740\u3002# \u67e5\u770b\u91cd\u542f\u540e\u7684\u914d\u7f6e\u3002_windows server \u5b89\u88c5docker","og_url":"https:\/\/www.wsisp.com\/helps\/27746.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T13:06:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419130614-68039fc640e5f.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/27746.html","url":"https:\/\/www.wsisp.com\/helps\/27746.html","name":"\u200bWindows Server\u670d\u52a1\u5668\u5b89\u88c5Docker\u200b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T13:06:18+00:00","dateModified":"2025-04-19T13:06:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/27746.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/27746.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/27746.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u200bWindows Server\u670d\u52a1\u5668\u5b89\u88c5Docker\u200b"}]},{"@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\/27746","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=27746"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/27746\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/27726"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=27746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=27746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=27746"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=27746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}