docs: Use relative paths (#272)

This commit is contained in:
Kroese 2025-03-12 12:10:09 +01:00 committed by GitHub
parent 5606964164
commit 837f007c6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 16 deletions

View file

@ -13,5 +13,7 @@ services:
- 8006:8006 - 8006:8006
- 3389:3389/tcp - 3389:3389/tcp
- 3389:3389/udp - 3389:3389/udp
volumes:
- ./windows:/storage
restart: always restart: always
stop_grace_period: 2m stop_grace_period: 2m

View file

@ -32,10 +32,6 @@ spec:
env: env:
- name: VERSION - name: VERSION
value: "11" value: "11"
- name: RAM_SIZE
value: "4G"
- name: CPU_CORES
value: "2"
- name: DISK_SIZE - name: DISK_SIZE
value: "64G" value: "64G"
ports: ports:

View file

@ -44,6 +44,8 @@ services:
- 8006:8006 - 8006:8006
- 3389:3389/tcp - 3389:3389/tcp
- 3389:3389/udp - 3389:3389/udp
volumes:
- ./windows:/storage
restart: always restart: always
stop_grace_period: 2m stop_grace_period: 2m
``` ```
@ -51,13 +53,13 @@ services:
Via Docker CLI: Via Docker CLI:
```bash ```bash
docker run -it --rm -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows docker run -it --rm --name windows -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v ${PWD:-.}/windows:/storage --stop-timeout 120 dockurr/windows
``` ```
Via Kubernetes: Via Kubernetes:
```shell ```shell
kubectl apply -f https://raw.githubusercontent.com/dockur/windows-arm/refs/heads/master/kubernetes.yml kubectl apply -f https://raw.githubusercontent.com/dockur/windows/refs/heads/master/kubernetes.yml
``` ```
## Compatibility ⚙️ ## Compatibility ⚙️
@ -112,10 +114,10 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/windows-arm/refs/heads
```yaml ```yaml
volumes: volumes:
- /var/win:/storage - ./windows:/storage
``` ```
Replace the example path `/var/win` with the desired storage folder. Replace the example path `./windows` with the desired storage folder or named volume.
### How do I change the size of the disk? ### How do I change the size of the disk?
@ -150,10 +152,10 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/windows-arm/refs/heads
```yaml ```yaml
volumes: volumes:
- /home/user/example:/data - ./example:/data
``` ```
The example folder `/home/user/example` will be available as ` \\host.lan\Data`. The example folder `./example` will be available as ` \\host.lan\Data`.
> [!TIP] > [!TIP]
> You can map this path to a drive letter in Windows, for easier access. > You can map this path to a drive letter in Windows, for easier access.
@ -171,10 +173,10 @@ The example folder `/home/user/example` will be available as ` \\host.lan\Data`.
```yaml ```yaml
volumes: volumes:
- /home/user/example.iso:/custom.iso - ./example.iso:/custom.iso
``` ```
Replace the example path `/home/user/example.iso` with the filename of your desired ISO file. The value of `VERSION` will be ignored in this case. Replace the example path `./example.iso` with the filename of your desired ISO file. The value of `VERSION` will be ignored in this case.
### How do I run a script after installation? ### How do I run a script after installation?
@ -184,10 +186,10 @@ The example folder `/home/user/example` will be available as ` \\host.lan\Data`.
```yaml ```yaml
volumes: volumes:
- /home/user/example:/oem - ./example:/oem
``` ```
The example folder `/home/user/example` will be copied to `C:\OEM` and the containing `install.bat` will be executed during the last step of the automatic installation. The example folder `./example` will be copied to `C:\OEM` and the containing `install.bat` will be executed during the last step of the automatic installation.
### How do I perform a manual installation? ### How do I perform a manual installation?
@ -316,8 +318,8 @@ The example folder `/home/user/example` will be available as ` \\host.lan\Data`.
DISK2_SIZE: "32G" DISK2_SIZE: "32G"
DISK3_SIZE: "64G" DISK3_SIZE: "64G"
volumes: volumes:
- /home/example:/storage2 - ./example2:/storage2
- /mnt/data/example:/storage3 - ./example3:/storage3
``` ```
### How do I pass-through a disk? ### How do I pass-through a disk?