mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
connection of docker AD AND client
This commit is contained in:
parent
05330ff64c
commit
e1e1200ea2
8 changed files with 77 additions and 9 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1 +1,4 @@
|
|||
|
||||
windows
|
||||
windows_2025
|
||||
win11x64.iso
|
||||
win2025-eval.iso
|
||||
80
compose.yml
80
compose.yml
|
|
@ -1,19 +1,83 @@
|
|||
# services:
|
||||
# windows:
|
||||
# image: dockurr/windows
|
||||
# container_name: windows_11
|
||||
# privileged: true
|
||||
# environment:
|
||||
# VERSION: "11"
|
||||
# devices:
|
||||
# - /dev/kvm
|
||||
# - /dev/net/tun
|
||||
# cap_add:
|
||||
# - NET_ADMIN
|
||||
# ports:
|
||||
# - 192.168.10.10:8006:8006
|
||||
# - 192.168.10.10:3389:3389/tcp
|
||||
# - 192.168.10.10:3389:3389/udp
|
||||
# volumes:
|
||||
# - ./win11x64.iso:/boot.iso
|
||||
# - ./windows:/storage
|
||||
# # - ./src/entry.sh:/run/entry.sh
|
||||
# restart: always
|
||||
# stop_grace_period: 2m
|
||||
# networks:
|
||||
# - ad_network
|
||||
|
||||
# networks:
|
||||
# ad_network:
|
||||
# external: true
|
||||
|
||||
services:
|
||||
windows:
|
||||
windows_2025:
|
||||
image: dockurr/windows
|
||||
container_name: windows
|
||||
container_name: windows_2025
|
||||
privileged: true
|
||||
environment:
|
||||
VERSION: "11"
|
||||
VERSION: "2025"
|
||||
DHCP: "Y"
|
||||
devices:
|
||||
- /dev/kvm
|
||||
- /dev/net/tun
|
||||
- /dev/vhost-net
|
||||
device_cgroup_rules:
|
||||
- 'c *:* rwm'
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
ports:
|
||||
- 8006:8006
|
||||
- 3389:3389/tcp
|
||||
- 3389:3389/udp
|
||||
volumes:
|
||||
- ./windows:/storage
|
||||
- ./win2025-eval.iso:/boot.iso
|
||||
- ./windows_2025:/storage
|
||||
- ./src/entry.sh:/run/entry.sh
|
||||
restart: always
|
||||
stop_grace_period: 2m
|
||||
networks:
|
||||
ad_vlan:
|
||||
ipv4_address: 192.168.10.201 # container IP (Linux side). Windows guest will DHCP a *different* IP.
|
||||
|
||||
windows_11:
|
||||
image: dockurr/windows
|
||||
container_name: windows_11
|
||||
privileged: true
|
||||
environment:
|
||||
VERSION: "11"
|
||||
DHCP: "Y"
|
||||
devices:
|
||||
- /dev/kvm
|
||||
- /dev/net/tun
|
||||
- /dev/vhost-net
|
||||
device_cgroup_rules:
|
||||
- 'c *:* rwm'
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
volumes:
|
||||
- ./win11x64.iso:/boot.iso
|
||||
- ./windows:/storage
|
||||
- ./src/entry.sh:/run/entry.sh
|
||||
restart: always
|
||||
stop_grace_period: 2m
|
||||
networks:
|
||||
ad_vlan:
|
||||
ipv4_address: 192.168.10.202 # container IP (Linux side)
|
||||
|
||||
networks:
|
||||
ad_vlan:
|
||||
external: true
|
||||
|
|
|
|||
0
src/define.sh
Normal file → Executable file
0
src/define.sh
Normal file → Executable file
1
src/entry.sh
Normal file → Executable file
1
src/entry.sh
Normal file → Executable file
|
|
@ -22,6 +22,7 @@ cd /run
|
|||
. power.sh # Configure shutdown
|
||||
. config.sh # Configure arguments
|
||||
|
||||
|
||||
trap - ERR
|
||||
|
||||
version=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1 | awk '{ print $NF }')
|
||||
|
|
|
|||
0
src/install.sh
Normal file → Executable file
0
src/install.sh
Normal file → Executable file
0
src/mido.sh
Normal file → Executable file
0
src/mido.sh
Normal file → Executable file
0
src/power.sh
Normal file → Executable file
0
src/power.sh
Normal file → Executable file
0
src/samba.sh
Normal file → Executable file
0
src/samba.sh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue