mirror of
https://github.com/dockur/windows.git
synced 2026-02-04 16:09:43 +00:00
feat: Add configurable restart policy, default to on-failure
- Changed restart policy from unless-stopped to on-failure
so Windows shutdown stops the container instead of restarting
- Added RESTART_POLICY env variable to .env.modern and .env.legacy
- Compose files use ${RESTART_POLICY:-on-failure} for flexibility
- Updated WINCTL_GUIDE.md with restart policy documentation
- Updated readme.md with RESTART_POLICY setting
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5b274afbba
commit
23cc434703
21 changed files with 43 additions and 22 deletions
|
|
@ -410,6 +410,7 @@ REGION=en-US
|
|||
KEYBOARD=en-US
|
||||
DHCP=N
|
||||
SAMBA=Y
|
||||
RESTART_POLICY=on-failure
|
||||
DEBUG=N
|
||||
```
|
||||
|
||||
|
|
@ -429,8 +430,20 @@ DEBUG=N
|
|||
| `HEIGHT` | Display height | 720 |
|
||||
| `DHCP` | Use DHCP networking | N |
|
||||
| `SAMBA` | Enable file sharing | Y |
|
||||
| `RESTART_POLICY` | Container restart policy | on-failure |
|
||||
| `DEBUG` | Debug mode | N |
|
||||
|
||||
### Restart Policy Options
|
||||
|
||||
| Value | Description |
|
||||
|-------|-------------|
|
||||
| `no` | Never restart automatically |
|
||||
| `on-failure` | Restart only if container exits with error (default) |
|
||||
| `always` | Always restart regardless of exit status |
|
||||
| `unless-stopped` | Always restart unless manually stopped |
|
||||
|
||||
**Note:** With `on-failure` (default), shutting down Windows from inside will stop the container. With `unless-stopped` or `always`, the container will restart after Windows shutdown.
|
||||
|
||||
---
|
||||
|
||||
## Interactive Menus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue