Upgrading Plex when running a Docker container
When running Plex in a Docker container, you can't actually upgrade/update the Docker image, but rather, you simply redeploy the container with a newer image.
My plex.yaml file:
version: '2'
services:
plex:
container_name: plex
image: plexinc/pms-docker:latest
restart: unless-stopped
environment:
- TZ=America/Denver
- PLEX_CLAIM=claim-randomstring
networks:
homenet:
ipv4_address: 192.168.1.220
hostname: PlexServer
volumes:
- /mnt/plex:/config
- /mnt/.plextranscode:/transcode
- /mnt/videos:/data
networks:
homenet:
external: true
Steps to redeploy newer version of Plex
Assuming we're running the docker-compose
command from the same directory as the plex.yaml file.
docker-compose -f ./plex.yaml pull plex
Pulling plex ... done
Once that is done, we can use the same command that we originally used to deploy Plex.
docker-compose -f ./plex.yaml up -d
Creating plex ... done
References
Docker Hub - plexinc/pms-docker https://hub.docker.com/r/plexinc/pms-docker/tags
Docker - docs https://docs.docker.com/compose/reference/pull/