Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

start and stopp a Docker together with a VM

Featured Replies

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?

 

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.

  • 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 

  • 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.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.