04
06月
2025
直接上代码:
docker run -itd --name windows -p 8006:8006 -p 3389:3389 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v "${PWD:-.}/windows:/storage" -e VERSION=xp -e DISK_SIZE=20G -e RAM_SIZE=2G -e CPU_CORES=2 -e USERNAME=admin -e PASSWORD=admin -e LANGUAGE=Chinese -e VERSION=2003 --stop-timeout 120 dockurr/windows
设置硬盘、内存、CPU、用户密码、语言、系统版本参数如下:
-e DISK_SIZE=256G
-e RAM_SIZE=8G
-e CPU_CORES=4
-e USERNAME=admin
-e PASSWORD=admin
-e LANGUAGE=Chinese
-e VERSION=xp
VERSION对应系统版本如下:
Value | Version | Size |
---|---|---|
11 | Windows 11 Pro | 5.4 GB |
11l | Windows 11 LTSC | 4.7 GB |
11e | Windows 11 Enterprise | 4.0 GB |
10 | Windows 10 Pro | 5.7 GB |
10l | Windows 10 LTSC | 4.6 GB |
10e | Windows 10 Enterprise | 5.2 GB |
8e | Windows 8.1 Enterprise | 3.7 GB |
7u | Windows 7 Ultimate | 3.1 GB |
vu | Windows Vista Ultimate | 3.0 GB |
xp | Windows XP Professional | 0.6 GB |
2k | Windows 2000 Professional | 0.4 GB |
2025 | Windows Server 2025 | 5.6 GB |
2022 | Windows Server 2022 | 4.7 GB |
2019 | Windows Server 2019 | 5.3 GB |
2016 | Windows Server 2016 | 6.5 GB |
2012 | Windows Server 2012 | 4.3 GB |
2008 | Windows Server 2008 | 3.0 GB |
2003 | Windows Server 2003 | 0.6 GB |