unraid-plex-nvdec icon indicating copy to clipboard operation
unraid-plex-nvdec copied to clipboard

Picks up the wrong container if it also starts with plex

Open JoelBrenstrum opened this issue 5 years ago • 4 comments

docker ps --format "{{.Names}}" | grep -i "plex" plexrequest plex

adding a -w to grep fixes this docker ps --format "{{.Names}}" | grep -iw"plex" plex

JoelBrenstrum avatar Aug 27 '19 10:08 JoelBrenstrum

Switch to OMBI and Tautulli.

I know it doesn’t fix the possible bug but you will be happier.

rmeaux avatar Aug 27 '19 11:08 rmeaux

Yea, I have both. The plexrequests container isn't actually running but thought I would raise the issue as I encountered it.

JoelBrenstrum avatar Aug 27 '19 11:08 JoelBrenstrum

Agreed

rmeaux avatar Aug 27 '19 11:08 rmeaux

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

Xaero252 avatar Sep 04 '19 21:09 Xaero252