地址 https://github.com/dockur/windows
composer
version: "3"
services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "win11"
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
restart: on-failure
cli
docker run -it --rm --name windows -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows
如果想换指定版本
environment:
VERSION: "win11"
标签:windows,dev,3389,--,docker,8006
From: https://www.cnblogs.com/qcy-blog/p/18145081