mkdir -p /opt/appdata/plex/config
mkdir -p /opt/appdata/plex/transcode
mkdir -p /opt/appdata/plex/data
--------------------------------------------
前往 https://www.plex.tv/claim/ 获取 TOKEN, 对应PLEX_CLAIM字段的值
sudo docker run \
-d \
--name plex \
-p 32400:32400/tcp \
-p 3005:3005/tcp \
-p 8324:8324/tcp \
-p 32469:32469/tcp \
-p 2400:2400/udp \
-p 32410:32410/udp \
-p 32412:32412/udp \
-p 32413:32413/udp \
-p 32414:32414/udp \
-e TZ=Asia/Shanghai \
-e PLEX_CLAIM=claim-xxxxxxxxxxxxxxxx \
-e ADVERTISE_IP="http://192.168.2.111:32400/" \
-h myplexserver \
-v /opt/appdata/plex/config:/config \
-v /opt/appdata/plex/transcode:/transcode \
-v /opt/appdata/plex/data:/data \
plexinc/pms-docker