Server Version#: latest docker container >1.32.2
Operating System = Ubuntu Server
Deployment = Docker via Compose
My goal is to get Plex Media Server to be able to install on Linux via Docker Compose to help me when I need to reinstall Plex (doesn’t happen often but tired of the manual steps with using OpenMediaVault for Plex).
After the docker-compose file is ran and logging into plexms, Plex doesn’t appear to recognize the mounted drives as I don’t receive the user prompt to map the drives.
When I mounted the drives, I know that they are mounted and available as I am able to move throughout the different directories and see the different movies stored on the drives.
Can anyone spot where I went wrong or what additional information I need to provide to help diagnose the issue?
Docker Compose File
version: '3.0'
services:
portainer:
container_name: portainer
image: portainer/portainer-ce
restart: always
ports:
- "9000:9000/tcp"
environment:
- TZ=America/Chicago
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/portainer:/data
plex:
image: plexinc/pms-docker
restart: unless-stopped
container_name: plexms
ports:
- "32400:32400/tcp"
environment:
- PUID=1000
- PGID=1000
- PLEX_CLAIM=claim-qxMuukMVqzs3BG_HyVzH
- HOSTNAME=”PlexServer”
- TZ=America/Chicago
volumes:
- /opt/plex/config:/config
- /opt/plex/transcode:/transcode
- ./mnt/NAS:/mnt/NAS
- ./mnt/NASDrive:/mnt/NASDrive
Docker Logs for Plex Container
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 40-plex-first-run: executing...
Attempting to obtain server token from claim token
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Plex Media Server first run setup complete
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing...
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
[cont-init.d] 50-plex-update: executing...
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed
Docker Inspect Output
[
{
"Id": "441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32",
"Created": "2023-05-24T01:23:55.049871847Z",
"Path": "/init",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 413269,
"ExitCode": 0,
"Error": "",
"StartedAt": "2023-05-24T01:23:57.175279134Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2023-05-24T01:44:17.654187438Z",
"End": "2023-05-24T01:44:17.802038238Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2023-05-24T01:44:22.872438951Z",
"End": "2023-05-24T01:44:23.045685875Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2023-05-24T01:44:28.123108767Z",
"End": "2023-05-24T01:44:28.308336513Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2023-05-24T01:44:33.382857438Z",
"End": "2023-05-24T01:44:33.54588612Z",
"ExitCode": 0,
"Output": ""
},
{
"Start": "2023-05-24T01:44:38.633979467Z",
"End": "2023-05-24T01:44:38.824435701Z",
"ExitCode": 0,
"Output": ""
}
]
}
},
"Image": "sha256:bac02dc145a66fbf2ac8dedfa8b3c34d3941d5f62e4a5835457637004119cc7d",
"ResolvConfPath": "/var/lib/docker/containers/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32/hostname",
"HostsPath": "/var/lib/docker/containers/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32/hosts",
"LogPath": "/var/lib/docker/containers/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32-json.log",
"Name": "/plexms",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/opt/plex/config:/config:rw",
"/opt/plex/transcode:/transcode:rw",
"/opt/mnt/NAS:/mnt/NAS:rw",
"/opt/mnt/NASDrive:/mnt/NASDrive:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "opt_default",
"PortBindings": {
"32400/tcp": [
{
"HostIp": "",
"HostPort": "32400"
}
]
},
"RestartPolicy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
0,
0
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "private",
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": [],
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": null,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/cedfcb0916f6cb7164d0080edb1546bc03b65d30d2dce3811bea09f512704836-init/diff:/var/lib/docker/overlay2/e32c5e7dd3a599b91e65cbad73a4d8f56bcdc88b1e39bd81cc7c17beb2d9f24f/diff:/var/lib/docker/overlay2/dce0c9aec151dfe809bbb3ceb39809ba0bad9e68c803ab7cf467dae4173ceb66/diff:/var/lib/docker/overlay2/f172756b44e398ac3d78214c58ca1d785a5d02b1ed5551716d5affe6cb0cdd89/diff:/var/lib/docker/overlay2/2afa7347e06a92f9c38047aa215ff1263fb7822d3e89aab1b28ac1aabb337636/diff",
"MergedDir": "/var/lib/docker/overlay2/cedfcb0916f6cb7164d0080edb1546bc03b65d30d2dce3811bea09f512704836/merged",
"UpperDir": "/var/lib/docker/overlay2/cedfcb0916f6cb7164d0080edb1546bc03b65d30d2dce3811bea09f512704836/diff",
"WorkDir": "/var/lib/docker/overlay2/cedfcb0916f6cb7164d0080edb1546bc03b65d30d2dce3811bea09f512704836/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/opt/plex/config",
"Destination": "/config",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/plex/transcode",
"Destination": "/transcode",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/mnt/NAS",
"Destination": "/mnt/NAS",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/mnt/NASDrive",
"Destination": "/mnt/NASDrive",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "441a7b0f6742",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"1900/udp": {},
"32400/tcp": {},
"32410/udp": {},
"32412/udp": {},
"32413/udp": {},
"32414/udp": {},
"32469/tcp": {},
"8324/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PGID=1000",
"PLEX_CLAIM=claim-qxMuukSWqzsy3G_HyVzH",
"HOSTNAME=”PlexServer”",
"TZ=\"America/Chicago”",
"PUID=1000",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"TERM=xterm",
"LANG=C.UTF-8",
"LC_ALL=C.UTF-8",
"CHANGE_CONFIG_DIR_OWNERSHIP=true",
"HOME=/config"
],
"Cmd": null,
"Healthcheck": {
"Test": [
"CMD-SHELL",
"/healthcheck.sh || exit 1"
],
"Interval": 5000000000,
"Timeout": 2000000000,
"Retries": 20
},
"Image": "plexinc/pms-docker",
"Volumes": {
"/config": {},
"/transcode": {}
},
"WorkingDir": "",
"Entrypoint": [
"/init"
],
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "7a852c34d5c72cc8101361bf800c070197ca0522f4b90ed441c65515eaa9d75e",
"com.docker.compose.container-number": "1",
"com.docker.compose.depends_on": "",
"com.docker.compose.image": "sha256:bac02dc145a66fbf2ac8dedfa8b3c34d3941d5f62e4a5835457637004119cc7d",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "opt",
"com.docker.compose.project.config_files": "/opt/docker-compose.yaml",
"com.docker.compose.project.working_dir": "/opt",
"com.docker.compose.service": "plex",
"com.docker.compose.version": "2.18.1",
"org.opencontainers.image.ref.name": "ubuntu",
"org.opencontainers.image.version": "20.04"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "8c5d15186819df456b6fba19aed5a482ac5c5026891c3c37af6a4231b5be7f33",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"1900/udp": null,
"32400/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "32400"
},
{
"HostIp": "::",
"HostPort": "32400"
}
],
"32410/udp": null,
"32412/udp": null,
"32413/udp": null,
"32414/udp": null,
"32469/tcp": null,
"8324/tcp": null
},
"SandboxKey": "/var/run/docker/netns/8c5d15186819",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"opt_default": {
"IPAMConfig": null,
"Links": null,
"Aliases": [
"plexms",
"plex",
"441a7b0f6742"
],
"NetworkID": "282f0c03565c752a0c76ffc6150511fba6935fb434e7d09d92257a4ef1317031",
"EndpointID": "266937821b2617459c878c3cad6485bb113771c22777ae118fa66026cfc5fc5f",
"Gateway": "172.18.0.1",
"IPAddress": "172.18.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:12:00:02",
"DriverOpts": null
}
}
}
}
]

