Jellyfin Forum
Container is binding to incorrect subnet and ignoring network.xml - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: Container is binding to incorrect subnet and ignoring network.xml (/t-container-is-binding-to-incorrect-subnet-and-ignoring-network-xml)

Pages: 1 2 3


RE: Container is binding to incorrect subnet and ignoring network.xml - gnattu - 2024-04-04

This option is a list and your setting is wrong.

We have a GUI for this is dashboard->advanced>networking, then you will see "Lan Networks" option, where you can set this key by GUI.

If you want to set it in xml, then you need to do it like this:

Code:
<LocalNetworkSubnets>
    <string>192.168.1.0/24</string>
    <string>192.168.2.0/24</string>
    <string>192.168.3.0/24</string>
    <string>192.168.99.0/24</string>
    <string>192.168.20.0/24</string>
</LocalNetworkSubnets>



RE: Container is binding to incorrect subnet and ignoring network.xml - TheDreadPirate - 2024-04-04

The problem is that they can't get to the GUI, even when using localhost:8096.


RE: Container is binding to incorrect subnet and ignoring network.xml - ghostkjb - 2024-04-04

(2024-04-04, 01:47 AM)TheDreadPirate Wrote: Everything looks right. Do you have SELinux or AppArmor turned on or something?

I don't know what either of these are.

I am Using a default install of Ubuntu Server and all of my other containers work fine

(2024-04-04, 02:04 AM)gnattu Wrote: This option is a list and your setting is wrong.

We have a GUI for this is dashboard->advanced>networking, then you will see "Lan Networks" option, where you can set this key by GUI.

If you want to set it in xml, then you need to do it like this:

Code:
<LocalNetworkSubnets>
    <string>192.168.1.0/24</string>
    <string>192.168.2.0/24</string>
    <string>192.168.3.0/24</string>
    <string>192.168.99.0/24</string>
    <string>192.168.20.0/24</string>
</LocalNetworkSubnets>

I'm going to try and set the correct subnet using this format provided.


RE: Container is binding to incorrect subnet and ignoring network.xml - TheDreadPirate - 2024-04-04

I may have found the problem. I just noticed this in your docker inspect.

For some reason "CgroupnsMode" is set to private instead of host. Pretty sure it should be "host" if the network type is also set to host. I wonder if this is a bug in the version of docker you are running.

Add this to your docker run command.

Code:
--cgroupns host

You can also try setting up a docker compose file to start and stop your container.


RE: Container is binding to incorrect subnet and ignoring network.xml - ghostkjb - 2024-04-04

Update:
Using the string format for the configuration got it to actually use the same subnet but for some reason I still can't access it.

Output of the container:

Code:
[14:25:30] [INF] [16] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task PluginUpdateTask
[14:25:30] [INF] [14] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Update Plugins
[14:25:31] [INF] [13] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 0 seconds
[14:25:31] [INF] [13] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[14:25:33] [INF] [17] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/shows
[14:26:27] [INF] [15] Emby.Server.Implementations.ScheduledTasks.TaskManager: IntervalTrigger fired for task: Scan Media Library
[14:26:27] [INF] [15] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task RefreshMediaLibraryTask
[14:26:27] [INF] [13] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Scan Media Library
[14:26:27] [INF] [13] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /media/shows
[14:26:27] [INF] [13] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /media/movies
[14:26:27] [INF] [13] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[14:27:13] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: Scan Media Library Completed after 0 minute(s) and 45 seconds
[14:27:13] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[14:27:14] [INF] [31] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/movies
[14:27:15] [INF] [22] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/shows
[14:27:44] [INF] [2] Main: Received a SIGTERM signal, shutting down
[14:27:44] [INF] [2] Main: Running query planner optimizations in the database... This might take a while
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing EntryPoint
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing DlnaEntryPoint
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: Disposing PlayToManager
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: Disposing DeviceDiscovery
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: Disposing SsdpCommunicationsServer
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: SsdpCommunicationsServer disposing _BroadcastListenSocket
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: SsdpCommunicationsServer Disposing 5 sendSockets
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: SsdpCommunicationsServer disposing sendSocket from 0.0.0.0
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: SsdpCommunicationsServer disposing sendSocket from 192.168.65.9
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: SsdpCommunicationsServer disposing sendSocket from 192.168.65.6
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: SsdpCommunicationsServer disposing sendSocket from 172.17.0.1
[14:27:44] [INF] [2] Emby.Dlna.Main.DlnaEntryPoint: SsdpCommunicationsServer disposing sendSocket from 127.0.0.1
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing UdpServerEntryPoint
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing LibraryChangedNotifier
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing EmbyTV
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing SchedulesDirect
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing DeviceAccessEntryPoint
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing EntryPoint
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing LibraryMonitorStartup
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing UserDataChangeNotifier
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing NotificationEntryPoint
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing RecordingNotifier
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzAlbumProvider
[14:27:44] [INF] [2] Emby.Server.Implementations.ApplicationHost: Disposing ExternalPortForwarding
[14:27:44] [INF] [2] Emby.Server.Implementations.EntryPoints.ExternalPortForwarding: Stopping NAT discovery
[14:27:45] [INF] [1] Main: Jellyfin version: 10.8.13
[14:27:45] [INF] [1] Main: Environment Variables: ["[JELLYFIN_DATA_DIR, /config]", "[DOTNET_SYSTEM_GLOBALIZATION_INVARIANT, 1]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_CONFIG_DIR, /config/config]"]
[14:27:45] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"]
[14:27:45] [INF] [1] Main: Operating system: Linux
[14:27:45] [INF] [1] Main: Architecture: X64
[14:27:45] [INF] [1] Main: 64-Bit Process: True
[14:27:45] [INF] [1] Main: User Interactive: True
[14:27:45] [INF] [1] Main: Processor count: 4
[14:27:45] [INF] [1] Main: Program data path: /config
[14:27:45] [INF] [1] Main: Web resources path: /jellyfin/jellyfin-web
[14:27:45] [INF] [1] Main: Application directory: /jellyfin/
[14:27:45] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[14:27:45] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[14:27:45] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [192.168.1.0/24]
[14:27:45] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
[14:27:45] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [192.168.1.0/24]
[14:27:45] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: []
[14:27:45] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: []
[14:28:13] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: TMDb 10.8.13.0
[14:28:13] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: Studio Images 10.8.13.0
[14:28:13] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.8.13.0
[14:28:13] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.8.13.0
[14:28:13] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.8.13.0
[14:28:13] [INF] [1] Main: Kestrel listening on Any IP4 Address
[14:28:13] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[14:28:13] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Extract Chapter Images set to fire at 2024-04-05 02:00:00.000 +00:00, which is 11:31:46.4463345 from now.
[14:28:13] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version 5.1.4
[14:28:13] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available decoders: ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "dca", "flac", "mp3", "truehd"]
[14:28:13] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available encoders: ["libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
[14:28:13] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available filters: ["deinterlace_qsv", "deinterlace_vaapi", "hwupload_cuda", "hwupload_vaapi", "overlay_opencl", "overlay_qsv", "overlay_vaapi", "overlay_cuda", "procamp_vaapi", "scale_cuda", "scale_opencl", "scale_qsv", "scale_vaapi", "tonemap_cuda", "tonemap_opencl", "tonemap_vaapi", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
[14:28:14] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"]
[14:28:14] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: /usr/lib/jellyfin-ffmpeg/ffmpeg
[14:28:14] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: 4473513f39104d43806440d7d10c2fce
[14:28:14] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all pre-startup entry points in 0:00:00.1719769
[14:28:14] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete
[14:28:14] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all post-startup entry points in 0:00:00.2398988
[14:28:14] [INF] [1] Main: Startup complete 0:00:29.6593083
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'AccessSchedule' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ActivityLog' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'CustomItemDisplayPreferences' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'DisplayPreferences' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'HomeSection' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ImageInfo' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ItemDisplayPreferences' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'Permission' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'Preference' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ApiKey' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'Device' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'DeviceOptions' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:15] [WRN] [16] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'User' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[14:28:16] [INF] [16] Emby.Server.Implementations.ScheduledTasks.TaskManager: StartupTrigger fired for task: Update Plugins
[14:28:16] [INF] [16] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task PluginUpdateTask
[14:28:16] [INF] [11] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Update Plugins
[14:28:16] [INF] [13] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/movies
[14:28:17] [INF] [16] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 0 seconds
[14:28:17] [INF] [16] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[14:28:19] [INF] [14] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/shows


Output of docker inspect jellyfin:

Code:
toor@docker:~$ docker inspect jellyfin
[
    {
        "Id": "8c47e732abdbd377412086c8fdd55cac4165efb82cd64c6838cd2a94a0996673",
        "Created": "2024-04-03T19:52:05.343344325Z",
        "Path": "/jellyfin/jellyfin",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 3026,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-04-04T14:27:44.828588515Z",
            "FinishedAt": "2024-04-04T14:27:44.562554446Z",
            "Health": {
                "Status": "healthy",
                "FailingStreak": 0,
                "Log": [
                    {
                        "Start": "2024-04-04T14:32:16.080529067Z",
                        "End": "2024-04-04T14:32:16.160793017Z",
                        "ExitCode": 0,
                        "Output": "Healthy"
                    },
                    {
                        "Start": "2024-04-04T14:32:46.163887242Z",
                        "End": "2024-04-04T14:32:46.234878343Z",
                        "ExitCode": 0,
                        "Output": "Healthy"
                    },
                    {
                        "Start": "2024-04-04T14:33:16.237450896Z",
                        "End": "2024-04-04T14:33:16.346370226Z",
                        "ExitCode": 0,
                        "Output": "Healthy"
                    },
                    {
                        "Start": "2024-04-04T14:33:46.347514278Z",
                        "End": "2024-04-04T14:33:46.416229422Z",
                        "ExitCode": 0,
                        "Output": "Healthy"
                    },
                    {
                        "Start": "2024-04-04T14:34:16.418672521Z",
                        "End": "2024-04-04T14:34:16.507809117Z",
                        "ExitCode": 0,
                        "Output": "Healthy"
                    }
                ]
            }
        },
        "Image": "sha256:544d674913bc396256f62e1540b88bfa0ed49714b941007c658e04018dea36da",
        "ResolvConfPath": "/var/lib/docker/containers/8c47e732abdbd377412086c8fdd55cac4165efb82cd64c6838cd2a94a0996673/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/8c47e732abdbd377412086c8fdd55cac4165efb82cd64c6838cd2a94a0996673/hostname",
        "HostsPath": "/var/lib/docker/containers/8c47e732abdbd377412086c8fdd55cac4165efb82cd64c6838cd2a94a0996673/hosts",
        "LogPath": "/var/lib/docker/containers/8c47e732abdbd377412086c8fdd55cac4165efb82cd64c6838cd2a94a0996673/8c47e732abdbd377412086c8fdd55cac4165efb82cd64c6838cd2a94a0996673-json.log",
        "Name": "/jellyfin",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/mnt/media:/media",
                "/mnt/docker/jellyfin/config:/config",
                "/mnt/docker/jellyfin/cache:/cache"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "host",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                24,
                80
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "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": [],
            "BlkioDeviceReadBps": [],
            "BlkioDeviceWriteBps": [],
            "BlkioDeviceReadIOps": [],
            "BlkioDeviceWriteIOps": [],
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": [],
            "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",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/14425e1791801e00cd69f142cc14ca505c9927dde0de9669a88e3dcb99da7b1a-init/diff:/var/lib/docker/overlay2/305e2957aa540ceaf0a39afa63bd6ba954cea73dde91d103379afcb6810d6df5/diff:/var/lib/docker/overlay2/4f4d37fd57b3ce245db156744605068b47ebfcf59fae77813157763287b00236/diff:/var/lib/docker/overlay2/d6baed06a965b292dc848f01dfed8f711b39e7065c6a2baa31c191e0976f5c6e/diff:/var/lib/docker/overlay2/ce8da4e1bbf9598e8852aacc6f43b84b0a0cce2244ec193d4c7d80929a9b1271/diff",
                "MergedDir": "/var/lib/docker/overlay2/14425e1791801e00cd69f142cc14ca505c9927dde0de9669a88e3dcb99da7b1a/merged",
                "UpperDir": "/var/lib/docker/overlay2/14425e1791801e00cd69f142cc14ca505c9927dde0de9669a88e3dcb99da7b1a/diff",
                "WorkDir": "/var/lib/docker/overlay2/14425e1791801e00cd69f142cc14ca505c9927dde0de9669a88e3dcb99da7b1a/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/mnt/media",
                "Destination": "/media",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt/docker/jellyfin/cache",
                "Destination": "/cache",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt/docker/jellyfin/config",
                "Destination": "/config",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "docker-desktop",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "8096/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PUID=1000",
                "PGID=1000",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "HEALTHCHECK_URL=http://localhost:8096/health",
                "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1",
                "LC_ALL=en_US.UTF-8",
                "LANG=en_US.UTF-8",
                "LANGUAGE=en_US:en",
                "JELLYFIN_DATA_DIR=/config",
                "JELLYFIN_CACHE_DIR=/cache",
                "JELLYFIN_CONFIG_DIR=/config/config",
                "JELLYFIN_LOG_DIR=/config/log",
                "JELLYFIN_WEB_DIR=/jellyfin/jellyfin-web",
                "JELLYFIN_FFMPEG=/usr/lib/jellyfin-ffmpeg/ffmpeg",
                "MALLOC_TRIM_THRESHOLD_=131072",
                "NVIDIA_VISIBLE_DEVICES=all",
                "NVIDIA_DRIVER_CAPABILITIES=compute,video,utility"
            ],
            "Cmd": null,
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "curl -Lk -fsS \"${HEALTHCHECK_URL}\" || exit 1"
                ],
                "Interval": 30000000000,
                "Timeout": 30000000000,
                "StartPeriod": 10000000000,
                "Retries": 3
            },
            "Image": "jellyfin/jellyfin",
            "Volumes": {
                "/cache": {},
                "/config": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/jellyfin/jellyfin"
            ],
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "8c8bc9d1e40b9b1057a518515cc286f7f5819bc619708f3e12db48104ee8f704",
            "SandboxKey": "/var/run/docker/netns/default",
            "Ports": {},
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "host": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "MacAddress": "",
                    "NetworkID": "8b8ca93497bca024bd786cb798f1451637bcef6d8e402cb08b4ea2b814cc1610",
                    "EndpointID": "418da657a52d988ab727fc1141ebfac246e85ae313b025013ce6925aa82a14f0",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DriverOpts": null,
                    "DNSNames": null
                }
            }
        }
    }
]
toor@docker:~$

Here is the network.xml:

Code:
<?xml version="1.0" encoding="utf-8"?>
<NetworkConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <RequireHttps>false</RequireHttps>
  <CertificatePath />
  <CertificatePassword />
  <BaseUrl />
  <PublicHttpsPort>8920</PublicHttpsPort>
  <HttpServerPortNumber>8096</HttpServerPortNumber>
  <HttpsPortNumber>8920</HttpsPortNumber>
  <EnableHttps>false</EnableHttps>
  <PublicPort>8096</PublicPort>
  <UPnPCreateHttpPortMap>false</UPnPCreateHttpPortMap>
  <UDPPortRange />
  <EnableIPV6>false</EnableIPV6>
  <EnableIPV4>true</EnableIPV4>
  <EnableSSDPTracing>false</EnableSSDPTracing>
  <SSDPTracingFilter />
  <UDPSendCount>2</UDPSendCount>
  <UDPSendDelay>100</UDPSendDelay>
  <IgnoreVirtualInterfaces>true</IgnoreVirtualInterfaces>
  <VirtualInterfaceNames>vEthernet*</VirtualInterfaceNames>
  <GatewayMonitorPeriod>60</GatewayMonitorPeriod>
  <TrustAllIP6Interfaces>false</TrustAllIP6Interfaces>
  <HDHomerunPortRange />
  <PublishedServerUriBySubnet />
  <AutoDiscoveryTracing>false</AutoDiscoveryTracing>
  <AutoDiscovery>true</AutoDiscovery>
  <RemoteIPFilter />
  <IsRemoteIPFilterBlacklist>false</IsRemoteIPFilterBlacklist>
  <EnableUPnP>false</EnableUPnP>
  <EnableRemoteAccess>true</EnableRemoteAccess>
  <LocalNetworkSubnets><string>192.168.1.0/24</string></LocalNetworkSubnets>
  <LocalNetworkAddresses />
  <KnownProxies />
  <EnablePublishedServerUriByRequest>false</EnablePublishedServerUriByRequest>
</NetworkConfiguration>



RE: Container is binding to incorrect subnet and ignoring network.xml - TheDreadPirate - 2024-04-04

See my post just prior to yours.

Add this to your docker config for Jellyfin.

--cgroupns host

Check whether your other containers are cgroupnsmode=host.


RE: Container is binding to incorrect subnet and ignoring network.xml - ghostkjb - 2024-04-04

I GOT IT!!

I was cross comparing to my other containers and I realized that for some reason all of the others that were working were on bridged network. (I've never used bridge before that I know of.)

So I put the container on bridged and passed through all of the ports listed on Jellyfin website!

Thank y'all so very much for your help! I'm glad I was able to specify the subnet with: <LocalNetworkSubnets><string>192.168.1.0/24</string></LocalNetworkSubnets>