{"id":1280,"date":"2025-09-23T23:05:57","date_gmt":"2025-09-23T15:05:57","guid":{"rendered":"https:\/\/www.jumoon.top\/?p=1280"},"modified":"2026-01-08T22:58:35","modified_gmt":"2026-01-08T14:58:35","slug":"docker%e5%ae%b9%e5%99%a8%e5%86%85%e7%9a%84windows%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.jumoon.top\/?p=1280","title":{"rendered":"Docker\u5bb9\u5668\u5185\u7684Windows\u7cfb\u7edf"},"content":{"rendered":"\n<p class=\"has-text-align-center\">\u901a\u8fc7Docker\u90e8\u7f72Windows\u865a\u62df\u673a\uff0c\u4e0b\u9762\u7684\u914d\u7f6e\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5c06\u5b89\u88c5Windows 11\u4e13\u4e1a\u7248\u3002\u4f46\u53ef\u4ee5\u5728docker-compose\u6587\u4ef6\u4e2d\u6dfb\u52a0VERSION\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u6307\u5b9a\u4e0b\u8f7d\u7684Windows\u7248\u672c\uff0c\u5177\u4f53\u7248\u672c\u53ef\u4ee5\u770b\u4e0b\u8868\uff0c\u5176\u4e2d<strong>Value<\/strong>\u5c31\u662f\u9700\u8981\u5728\u73af\u5883\u53d8\u91cf\u4e2d\u586b\u5199\u7684\u7248\u672c\uff0c\u5982\u679c\u90e8\u7f72\u591a\u4e2a\uff0c\u53ef\u4ee5\u5c06ports\u4e2d\u4e3b\u673a\u90e8\u5206\u7684\u7aef\u53e3\u6539\u4e3a\u5176\u4ed6\u7aef\u53e3\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>services:\n  windows:\n    image: dockurr\/windows\n    container_name: windows\n    environment:\n      VERSION: \"11\" \n    devices:\n      - \/dev\/kvm\n      - \/dev\/net\/tun\n    cap_add:\n      - NET_ADMIN\n    ports:\n      - 8006:8006\n      - 3389:3389\/tcp\n      - 3389:3389\/udp\n    volumes:\n      - .\/windows:\/storage\n    restart: always\n    stop_grace_period: 2m\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Value<\/strong><\/th><th><strong>Version<\/strong><\/th><th><strong>Size<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>11<\/code><\/td><td>Windows 11 Pro<\/td><td>5.4 GB<\/td><\/tr><tr><td><code>11l<\/code><\/td><td>Windows 11 LTSC<\/td><td>4.7 GB<\/td><\/tr><tr><td><code>11e<\/code><\/td><td>Windows 11 Enterprise<\/td><td>5.3 GB<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td><code>10<\/code><\/td><td>Windows 10 Pro<\/td><td>5.7 GB<\/td><\/tr><tr><td><code>10l<\/code><\/td><td>Windows 10 LTSC<\/td><td>4.6 GB<\/td><\/tr><tr><td><code>10e<\/code><\/td><td>Windows 10 Enterprise<\/td><td>5.2 GB<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td><code>8e<\/code><\/td><td>Windows 8.1 Enterprise<\/td><td>3.7 GB<\/td><\/tr><tr><td><code>7u<\/code><\/td><td>Windows 7 Ultimate<\/td><td>3.1 GB<\/td><\/tr><tr><td><code>vu<\/code><\/td><td>Windows Vista Ultimate<\/td><td>3.0 GB<\/td><\/tr><tr><td><code>xp<\/code><\/td><td>Windows XP Professional<\/td><td>0.6 GB<\/td><\/tr><tr><td><code>2k<\/code><\/td><td>Windows 2000 Professional<\/td><td>0.4 GB<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td><code>2025<\/code><\/td><td>Windows Server 2025<\/td><td>6.7 GB<\/td><\/tr><tr><td><code>2022<\/code><\/td><td>Windows Server 2022<\/td><td>6.0 GB<\/td><\/tr><tr><td><code>2019<\/code><\/td><td>Windows Server 2019<\/td><td>5.3 GB<\/td><\/tr><tr><td><code>2016<\/code><\/td><td>Windows Server 2016<\/td><td>6.5 GB<\/td><\/tr><tr><td><code>2012<\/code><\/td><td>Windows Server 2012<\/td><td>4.3 GB<\/td><\/tr><tr><td><code>2008<\/code><\/td><td>Windows Server 2008<\/td><td>3.0 GB<\/td><\/tr><tr><td><code>2003<\/code><\/td><td>Windows Server 2003<\/td><td>0.6 GB<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7Docker\u90e8\u7f72Windows\u865a\u62df\u673a\uff0c\u4e0b\u9762\u7684\u914d\u7f6e\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5c06\u5b89\u88c5Windows 11\u4e13\u4e1a\u7248\u3002\u4f46\u53ef\u4ee5\u5728do [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[19],"tags":[],"class_list":["post-1280","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/posts\/1280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1280"}],"version-history":[{"count":2,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/posts\/1280\/revisions"}],"predecessor-version":[{"id":1282,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/posts\/1280\/revisions\/1282"}],"wp:attachment":[{"href":"https:\/\/www.jumoon.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}