mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 11:45:50 +00:00
docs: custom iso
This commit is contained in:
parent
8a5f233e34
commit
8a592adf8e
1 changed files with 48 additions and 1 deletions
47
readme.md
47
readme.md
|
|
@ -157,6 +157,53 @@ docker run -it --rm --name windows -p 8006:8006 --device=/dev/kvm --cap-add NET_
|
||||||
VERSION: "https://example.com/win.iso"
|
VERSION: "https://example.com/win.iso"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
1. add nginx service and change env VERSION
|
||||||
|
|
||||||
|
2. then upload custom.iso to your host machine like /opt/windows/win7
|
||||||
|
|
||||||
|
3. restart docker container (will pull nginx at first time)
|
||||||
|
|
||||||
|
```shell
|
||||||
|
root@focus:/opt/windows/win7# ls -alh
|
||||||
|
total 3.0G
|
||||||
|
drwxrwxrwx 2 root root 4.0K Apr 17 03:12 .
|
||||||
|
drwxr-xr-x 5 root root 4.0K Apr 17 03:08 ..
|
||||||
|
-rw-r--r-- 1 root root 3.0G Apr 15 03:52 custom.iso
|
||||||
|
root@focus:/opt/windows/win7#
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
windows:
|
||||||
|
container_name: windows
|
||||||
|
image: dockurr/windows
|
||||||
|
environment:
|
||||||
|
VERSION: "http://nginx/custom.iso"
|
||||||
|
devices:
|
||||||
|
- /dev/kvm
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
ports:
|
||||||
|
- 8006:8006
|
||||||
|
- 3389:3389/tcp
|
||||||
|
- 3389:3389/udp
|
||||||
|
stop_grace_period: 2m
|
||||||
|
restart: on-failure
|
||||||
|
volumes:
|
||||||
|
- "/opt/windows/win7:/storage"
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
container_name: nginx
|
||||||
|
image: nginx
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
volumes:
|
||||||
|
- "/opt/windows/win7:/usr/share/nginx/html"
|
||||||
|
```
|
||||||
|
|
||||||
Alternatively, you can also rename a local file to `custom.iso` and place it in an empty `/storage` folder to skip the download.
|
Alternatively, you can also rename a local file to `custom.iso` and place it in an empty `/storage` folder to skip the download.
|
||||||
|
|
||||||
* ### How do I perform a manual installation?
|
* ### How do I perform a manual installation?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue