-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockur compose Windows Virtual Machines On Docker
58 lines (57 loc) · 2.32 KB
/
Dockur compose Windows Virtual Machines On Docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#By default I have disabled the networking side of this compose. You can re-enable it by removing the # from the relevant sections as shown. in my video.
#If you re-enable the networks you will need to amend them to your setup parameters. The same for storage ect...
#This compose is related to my upcoming/already out as of 15.07.2024 https://youtu.be/PKOQOnciy3E KL Tech Videos # www.youtube.com@/kltechvideos/videos
version: "3" # Add version for compatibility
services:
windows:
image: dockurr/windows
container_name: windows
#networks:
#networknamehere:
#ipv4_address: 192.168.1.2 #Container IP from your network here Make sure its available!
environment:
VERSION: win11
LANGUAGE: English
REGION: en-GB
KEYBOARD: en-GB
DISK_SIZE: 62GB
RAM_SIZE: 4G
CPU_CORES: "4"
#USERNAME: Docker #If you don't change this windows username will be Docker with no password.
#PASSWORD: Gates
#DHCP: Y #Enable this to aqauire a second ip from your network but one that windows will use.
#ARGUMENTS: "-device usb-host,vendorid=0x1234,productid=0x1234"
#DISK2_SIZE: "32G"
#DISK3_SIZE: "64G"
#MANUAL: "Y"
#VERSION: "https://example.com/win.iso"
devices:
#- /dev/vhost-net # This allows direct network access and must be used if using the DHCP option above and the macvlan.
- /dev/kvm
device_cgroup_rules:
- c *:* rwm
volumes:
# - /home/user/example.iso:/custom.iso
# - /home/example:/storage2
# - /mnt/data/example:/storage3
- /home/kflix/myapps/containervms/testwin11demo:/storage # This is for your primary hard drive. You must change this to suit your setup.
# - /home/user/example:/shared
# - /home/user/example:/oem
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
#networks:
# Change all details below so your network details are used.
#networknamehere:
#external: true # Use this external true if setting up a second one of these compose so you can use the same macvlan.
#driver: macvlan # Add the driver for the network
#driver_opts:
#parent: enp6s0 # Replace with the actual interface (e.g., eth0)
#ipam:
#config:
#- subnet: 192.168.1.0/24
#gateway: 192.168.1.1