start and stopp a Docker together with a VM


4 posts in this topic Last Reply

Recommended Posts

37 minutes ago, Putschgi said:

is that possible?

Sure, but it will require a custom script or scripts, it's not a built in feature of Unraid.


I have no idea of your personal level of expertise, so all I can confidently say is that if you use the virsh and docker commands properly in a script, it's relatively easy.

Link to post
  • 1 month later...
On 4/22/2020 at 10:44 AM, Putschgi said:

Hello everybody I have a VM with Windows 10 and want to start a Docker when the VM is running and switch it off again when the VM stops. is that possible?


Did you ever figure this out. I’m not too script savvy. But I’ve been trying to find a way to stop Plex (with Gpu passthru) when I start a VM with the same gpu passthru 

Link to post
  • 2 months later...

I think that this could be accomplish with a user script, specifically with the command "virsh list" and "docker stop", you only have to check is the vm is present or not in the list, the main problem is the delay (VMs in SSDs starts veryfast) of the script, but probably you could just let it in a constant loop, so every 5 seconds checks if the vm is running or not.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.