docker-plex icon indicating copy to clipboard operation
docker-plex copied to clipboard

Handle signals

Open jaymoulin opened this issue 9 years ago • 2 comments

https://www.ctl.io/developers/blog/post/gracefully-stopping-docker-containers/

jaymoulin avatar Jan 16 '17 20:01 jaymoulin

Just a tiny description (might be helpful for others)

If after the each restart you're getting the message in logs: Plex Media Server is already running. Will not start...

Stop the container and manually delete the following file: /Library/Application Support/Plex Media Server/plexmediaserver.pid In the plex library folder which you have previously mounted to the /root folder in a container.

In my case it was: -v /mnt/nas/plex-library:/root

bashmakoff avatar Feb 26 '17 18:02 bashmakoff

You're right! I'm also aware of your problem but that's not the purpose of this issue. As the link in the description explain, the problem remains in the docker container stop process which force kill Plex instead of a graceful exit.

By fixing this, you should not be able to reproduce the PID file behavior

jaymoulin avatar Feb 26 '17 18:02 jaymoulin