仓库地址:https://hub.docker.com/r/dockurr/windows/
首先是我的 docker-compose 配置
services:
windows:
image: dockurr/windows:4.11
container_name: windows
environment:
#选择Windows版本
VERSION: "10"
#更改磁盘大小
DISK_SIZE: "64G"
#更改CPU或RAM
RAM_SIZE: "8G"
CPU_CORES: "4"
#设置系统语言
LANGUAGE: "Chinese"
#默认键盘和环境语言
REGION: "en-US"
KEYBOARD: "en-US"
# DHCP: "Y"
devices:
- /dev/kvm
# - /dev/vhost-net
# - /dev/net/tun
# device_cgroup_rules:
# - 'c *:* rwm'
cap_add:
- NET_ADMIN
volumes:
- /volume1/docker/Windwos/win:/storage
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
restart: always
stop_grace_period: 2m
群晖部署的效果
评论区