I’ve been reading here and on other forums what would be the best way to upgrade a docker container. Based on what I’ve read, the docker container should never be upgraded. There are different images available that allow PMS to be updated but the concept itself is a complete no no in docker community. So following on what is considered the official way to upgrade a container, this is how I plan to upgrade mine.
I created my container using externally mounted volumes:
docker run -d \
--name plex \
--network=host \
--restart=unless-stopped \
-e TZ="America/Chicago" \
-v /mnt/plex/database:/config \
-v /mnt/plex/transcode:/transcode \
-v /mnt/:/data/tvshows \
-v /mnt/Media/Movies:/data/movies \
plexinc/pms-docker
When an upgrade is available, I plan to stop the original container and create a new container with a temporary name.
docker run -d \
--name plex-tmp \
--network=host \
--restart=unless-stopped \
-e TZ="America/Chicago" \
-v /mnt/plex/database:/config \
-v /mnt/plex/transcode:/transcode \
-v /mnt/:/data/tvshows \
-v /mnt/Media/Movies:/data/movies \
plexinc/pms-docker
Once the updated PMS is validated, I can delete my old container and rename the new one.
docker rename plex-tmp plex
This is the expected way to upgrade a docker container. Is there anything that I am missing from PMS perspective? Would this work?