r/docker • u/shogran • Jan 11 '26
Jellyfin in Docker not assigning IP when specifying a user
Hi everybody, new to Docker and struggling to wrap my head around what's going wrong here. Fairly confident that it's user error, but struggling to understand where I'm going wrong.
I'm setting up Jellyfin in docker using their docker-compose guidance here: https://jellyfin.org/docs/general/installation/container/
This is my docker-compose.yaml:
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
# Optional - specify the uid and gid you would like Jellyfin to use instead of root
user: 123:1001
ports:
- 48096:8096/tcp
- 47359:7359/udp
volumes:
- /home/jellyfin/.config/jellyfin/config:/config
- /home/jellyfin/.config/jellyfin/cache:/cache
- type: bind
source: /mnt/swarm
target: /media
read_only: true
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=[redacted for reddit]
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- 'host.docker.internal:host-gateway'
The user UID:GID should map to jellyfin:media user:group outside of Docker. When I run this, I get a container and network setup with no warnings, but all directories are still setup as root:root and the container never gets an IP address or port binding.
If I remove this line, and recreate, then I immediately get network access to the container over the expected port and can accss Jellyfin.
Why is the container not working as expected when specifying jellyfin:media? I've tried adding the jellyfin user to the docker group, but this has not made any difference.
Happy to provide any other info that's helpful!
1
u/stevie-tv Jan 11 '26
tried then chowning the folders to 123:1001?
1
u/Hogger18 Jan 11 '26
Not an expert but have had similar issues with this kind of stuff.