feat: Implement graceful shutdown (#81)

This commit is contained in:
Kroese 2024-01-23 22:38:17 +01:00 committed by GitHub
parent 8474b917b2
commit 08f040a819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 169 additions and 23 deletions

View file

@ -39,13 +39,13 @@ services:
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
restart: unless-stopped
restart: on-failure
```
Via `docker run`
```bash
docker run -it --rm -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN dockurr/windows
docker run -it --rm -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows
```
## FAQ
@ -152,7 +152,7 @@ docker run -it --rm -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN dockurr/w
VERSION: "https://example.com/win.iso"
```
Alternatively, you can also place a file called `custom.iso` 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 pass-through a disk?