unraid-plex-nvdec
unraid-plex-nvdec copied to clipboard
Picks up the wrong container if it also starts with plex
docker ps --format "{{.Names}}" | grep -i "plex"
plexrequest
plex
adding a -w
to grep fixes this
docker ps --format "{{.Names}}" | grep -iw"plex"
plex
Switch to OMBI and Tautulli.
I know it doesn’t fix the possible bug but you will be happier.
Yea, I have both. The plexrequests container isn't actually running but thought I would raise the issue as I encountered it.
Agreed
There isn't a great way to handle this universally. For example some dockers are named "plexpass" some are named "pms-docker" some are named just "plex"
Using grep -iw
works for just one of those cases. I'll need to think on this a bit for a good solution - perhaps a list of container names and checking against that. The two containers used most on Unraid however, would work fine with grep -iw
and that's the intended target of this cript