
Forked from https://github.com/spritsail/plex-media-server
The smallest* Plex Media Server docker image, built FROM alpine:edge with musl provided by Plex and supporting libraries and binaries built from source. The container hosts a fully featured Plex Media Server, with almost all of the useless crap removed, resulting in the smallest container possible whilst maintaining full functionality.
*last we checked
Navigate to plex.tv/claim and obtain a token in the form claim-xxxx...
Start the container, as demonstrated below, passing the claim token via the PLEX_CLAIM environment variable. This only has to be present on the first run (when the configuration is generated/if you need to re-claim the server at any time) and can be removed for subsequent runs. The Plex claim token is optional however it will make the server available to your account immediately.
Setting the container hostname on first boot will set the Plex server name.
shelldocker run -dt \ --name=plex \ --restart=unless-stopped \ --hostname=my-plex-server \ -p 32400:32400 \ -e PLEX_CLAIM=claim-xxxx... \ -v /config/plex:/config \ -v /transcode:/transcode \ -v /media:/media \ spritsail/plex-media-server
Finally, navigate to app.plex.tv/desktop or your-ip:32400/web and you're done!
/config - Configuration, logs, caches and other Plex crap. You should keep this/transcode - Transcoder temporary directory. This should be backed by fast storage, ideally tmpfs/RAM.$SUID - User ID to run as default: 900$SGID - Group ID to run as default: 900$ALLOWED_NETWORKS - IP/netmask entries which allow access to the server without requiring authorization. We recommend you set this only if you do not sign in your server. For example 192.168.1.0/24,172.16.0.0/16 will allow access to the entire 192.168.1.x range and the 172.16.x.x range.$ADVERTISE_IP - This variable defines the additional IPs on which the server may be be found. For example: http://10.1.1.23:32400. This adds to the list where the server advertises that it can be found.$DISABLE_REMOTE_SEC -$PLEX_CLAIM - The claim token for the server to obtain a real server token. If not provided, server will not be automatically logged in. If server is already logged in, this parameter is ignored.$LOG_DEBUG - Disables debug logging if set to 0, and enables it if set to 1. This overwrites preferences set in the Plex Web user interface.$LOG_VERBOSE - Disables logging (except warnings and errors) if set to 0, and enables it if set to 1. This overwrites preferences set in the Plex Web user interface.The following ports are all used by Plex for various applications
32400/tcp Plex Web/Client Access5353/udp Bonjour/Avahi3005/tcp Plex Home Theatre via Plex Companion8324/tcp Plex for Roku via Plex Companion1900/udp Plex DLNA Server32469/udp Plex DLNA Server32410/udp GDM network discovery32412/udp GDM network discovery32413/udp GDM network discovery32414/udp GDM network discoverySee also: [***]
At the very least, you should expose 32400/tcp to your network, and port forward it through your router if you would like Plex access outside your home network.
If you wish, you can map the Plex port to any other port outside your network, just be sure to update the port in Settings > Server > Remote Access (Show Advanced) under Manually specify public port.
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务