dockur / windows

Windows inside a Docker container.
MIT License
17.79k stars 1.55k forks source link

[Feature]: Automatic Machine FallBack #572

Closed Cuphead74832 closed 2 weeks ago

Cuphead74832 commented 4 months ago

Is your proposal related to a problem?

Well yes. Im annoyed by random system shutdown, or system crash.

Describe the solution you'd like.

I want an enviroment variable for the compose file something like "fallback: true" that enables the machine to automatically relaunch itself after it either shutsdown by itself or crashes until the user ACTUALLY tells the container to shutdown.

Describe alternatives you've considered.

I did no research the crashes happens due to hi-ram and cpu usage my machine cant handle, to prevent this i have to keep my system low.

Additional context

This feature would make getting easily back up from a machine shutdown/crash instantly within 5 seconds or less and would not require the user to tell the container to reset everytime.

kroese commented 4 months ago

Add this to your compose:

services:
  windows:
    restart: always
Cuphead74832 commented 4 months ago

Will try, A few more questions and a feature request:

Is RDP windows-side or it works no matter the state of the machine?? Also is there another compose flag that forces the CD to boot always first instead of the hard disk or anyway to tell it to boot from a secondary ISO after the first one reboots? And lastly i wish you could do localhost:port/reboot to signal the machine to reboot from browser

Cuphead74832 commented 4 months ago

Uh, so this is what happens now, everytime it restarts it downloads the ISO again. and again. and again. never finishes the boot process.

kroese commented 4 months ago

It gets a bit confusing if you mix feature requests and issues all together. Better to keep them seperated, but here you go:

You start with a feature request, I give you the solution ( restart: always ) but suddenly it turns out you have a whole other issue. So please create a new ticket because I have no idea what you mean without seeing the log-files, etc.