How do I change the container address pool for TruenasSCALE.. nextcloud errors

Hello All,

I have been struggling with this for quite a while now and just cannot find a solution to how to change the IP address range that the containers pull address from. right now my containers are pulling 172 addresses which seems to work for Plex but is breaking nextcloud.

My environment:

TruenasSCALE: 25.04.0
Interface IP’s: 192.168.1.100 & 192.168.1.200
Nextcloud
Plex

I had Nextcloud running until I tried to add files_external which needed to be activated by “occ app:enable files_external”. As soon as I executed that directive Nextcloud broke and I started receiving an error complaining about a 172 address.

Investigating further I did a “docker ps” command and found the id of the container running nextcloud.

At the bottom (for readability) is the output of the “docker inspect ” command for that container. As you see it is using 172 addresses. I would like to use all 192.168.0.0/16 addresses for all of my containers to simplify my routing internally but for the life of me cannot figure out how to change the pool of IP’s that docker pulls from.

I have tried editing the entries in the daemon.json file from 172.17.0.0/12 to 192.168.0.0/16 but no luck and when I reboot it gets overwritten anyway:

text`{
“data-root”: “/mnt/.ix-apps/docker”,
“exec-opts”: [“native.cgroupdriver=cgroupfs”],
“iptables”: true,
“ipv6”: true,
“default-network-opts”: {
“bridge”: {
“com.docker.n
etwork.enable_ipv6”: “true”
}
},
“storage-driver”: “overlay2”,
“fixed-cidr-v6”: “fdd0::/64”,
“default-address-pools”: [{
“base”: “172.17.0.0/12”,
“size”: 24
}, {
“base”: "
fdd0::/48",
“size”: 64
}
]
}

Output from docker inspect

[
{
“Id”: “1a8ced0f17e7c2a40ccb0d2ddc57c35493a58b1bc1da44b70363aaf512a4ee5a”,
“Created”: “2025-05-15T02:29:49.02259751Z”,
“Path”: “/entrypoint.sh”,
“Args”: [
“apache2-foreground”
],
“State”: {
“Status”: “running”,
“Running”: true,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 7401,
“ExitCode”: 0,
“Error”: “”,
“StartedAt”: “2025-05-15T16:38:32.841586492Z”,
“FinishedAt”: “2025-05-15T16:24:50.413638271Z”,
“Health”: {
“Status”: “healthy”,
“FailingStreak”: 0,
“Log”: [
{
“Start”: “2025-05-15T10:00:34.605267892-07:00”,
“End”: “2025-05-15T10:00:34.697175652-07:00”,
“ExitCode”: 0,
“Output”: “”
},
{
“Start”: “2025-05-15T10:00:44.697892595-07:00”,
“End”: “2025-05-15T10:00:44.764765037-07:00”,
“ExitCode”: 0,
“Output”: “”
},
{
“Start”: “2025-05-15T10:00:54.765196666-07:00”,
“End”: “2025-05-15T10:00:54.834691344-07:00”,
“ExitCode”: 0,
“Output”: “”
},
{
“Start”: “2025-05-15T10:01:04.835996755-07:00”,
“End”: “2025-05-15T10:01:04.905964568-07:00”,
“ExitCode”: 0,
“Output”: “”
},
{
“Start”: “2025-05-15T10:01:14.906684203-07:00”,
“End”: “2025-05-15T10:01:14.9829069-07:00”,
“ExitCode”: 0,
“Output”: “”
}
]
}
},
“Image”: “sha256:46e5d4bc974251732061d67ead41ec64c7a68451a7a1450d0cd976a07f005de3”,
“ResolvConfPath”: “/mnt/.ix-apps/docker/containers/1a8ced0f17e7c2a40ccb0d2ddc57c35493a58b1bc1da44b70363aaf512a4ee5a/resolv.conf”,
“HostnamePath”: “/mnt/.ix-apps/docker/containers/1a8ced0f17e7c2a40ccb0d2ddc57c35493a58b1bc1da44b70363aaf512a4ee5a/hostname”,
“HostsPath”: “/mnt/.ix-apps/docker/containers/1a8ced0f17e7c2a40ccb0d2ddc57c35493a58b1bc1da44b70363aaf512a4ee5a/hosts”,
“LogPath”: “/mnt/.ix-apps/docker/containers/1a8ced0f17e7c2a40ccb0d2ddc57c35493a58b1bc1da44b70363aaf512a4ee5a/1a8ced0f17e7c2a40ccb0d2ddc57c35493a58b1bc1da44b70363aaf512a4ee5a-json.log”,
“Name”: “/ix-nextcloud-nextcloud-1”,
“RestartCount”: 0,
“Driver”: “overlay2”,
“Platform”: “linux”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“AppArmorProfile”: “docker-default”,
“ExecIDs”: [
“5145462399cb1dfa036fe07f3e64128d9c1f980a6afc30f0d749231c783639cd”,
“195f7f022254a26399fcad76a69ec4a1c2234386ad8da4a35ceaabe670b7df20”
],
“HostConfig”: {
“Binds”: null,
“ContainerIDFile”: “”,
“LogConfig”: {
“Type”: “json-file”,
“Config”: {}
},
“NetworkMode”: “ix-nextcloud_default”,
“PortBindings”: {},
“RestartPolicy”: {
“Name”: “unless-stopped”,
“MaximumRetryCount”: 0
},
“AutoRemove”: false,
“VolumeDriver”: “”,
“VolumesFrom”: null,
“ConsoleSize”: [
0,
0
],
“CapAdd”: [
“CHOWN”,
“DAC_OVERRIDE”,
“FOWNER”,
“NET_BIND_SERVICE”,
“NET_RAW”,
“SETGID”,
“SETUID”
],
“CapDrop”: [
“ALL”
],
“CgroupnsMode”: “private”,
“Dns”: ,
“DnsOptions”: ,
“DnsSearch”: ,
“ExtraHosts”: ,
“GroupAdd”: [
“568”
],
“IpcMode”: “private”,
“Cgroup”: “”,
“Links”: null,
“OomScoreAdj”: 0,
“PidMode”: “”,
“Privileged”: false,
“PublishAllPorts”: false,
“ReadonlyRootfs”: false,
“SecurityOpt”: [
“no-new-privileges=true”
],
“UTSMode”: “”,
“UsernsMode”: “”,
“ShmSize”: 67108864,
“Runtime”: “runc”,
“Isolation”: “”,
“CpuShares”: 0,
“Memory”: 4294967296,
“NanoCpus”: 2000000000,
“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”: 8589934592,
“MemorySwappiness”: null,
“OomKillDisable”: null,
“PidsLimit”: null,
“Ulimits”: null,
“CpuCount”: 0,
“CpuPercent”: 0,
“IOMaximumIOps”: 0,
“IOMaximumBandwidth”: 0,
“Mounts”: [
{
“Type”: “bind”,
“Source”: “/mnt/CoreStorage/WJN_Fileserver”,
“Target”: “/mnt/Applications/nextcloud/data/bniester”,
“BindOptions”: {
“Propagation”: “rprivate”
}
},
{
“Type”: “volume”,
“Target”: “/tmp”,
“VolumeOptions”: {}
},
{
“Type”: “bind”,
“Source”: “/mnt/Applications/nextcloud/html”,
“Target”: “/var/www/html”,
“BindOptions”: {
“Propagation”: “rprivate”
}
},
{
“Type”: “bind”,
“Source”: “/mnt/Applications/nextcloud/data”,
“Target”: “/var/www/html/data”,
“BindOptions”: {
“Propagation”: “rprivate”
}
}
],
“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”: “/mnt/.ix-apps/docker/overlay2/daa5483ef60e7e9c7a9000bc3426b33c0f82d55663956f441cf6cbe819dc8955-init/diff:/mnt/.ix-apps/docker/overlay2/wphk5bcujpxnqnz8810u42hqi/diff:/mnt/.ix-apps/docker/overlay2/xb9vqlgw93qsfn93t5awl99y6/diff:/mnt/.ix-apps/docker/overlay2/enhnlph109y0ogmzvwjgk63nb/diff:/mnt/.ix-apps/docker/overlay2/ilml3pf3q4ph62szuibudyixw/diff:/mnt/.ix-apps/docker/overlay2/598dpa7u9q297pp74ywwnxvlg/diff:/mnt/.ix-apps/docker/overlay2/tf1srz0utf92m7ih6jl7ztl8o/diff:/mnt/.ix-apps/docker/overlay2/ryvqa2omwcobu897qprrvpmc4/diff:/mnt/.ix-apps/docker/overlay2/7b96429c761407587ca86f97c4d81ba9eac68669d324ec8fec51cee7bdadb424/diff:/mnt/.ix-apps/docker/overlay2/072f0f730530b8e682f005b4ac7d44b5c9ffdf5d587f652bd8b3527655b4b9b6/diff:/mnt/.ix-apps/docker/overlay2/517765c142813d7bde75d60569a37f5c36923bc102ffb00c8407ee23f00b5867/diff:/mnt/.ix-apps/docker/overlay2/44f6e1069bd177944d73138759cad0253f812814d4d571ad248f71b395f53775/diff:/mnt/.ix-apps/docker/overlay2/5098cddaef5b90562146f13cc63345a843dafc6ee092e4c802918e1430b395af/diff:/mnt/.ix-apps/docker/overlay2/e2625f029cd9d01fc602972ddec3344a5f426475b6f0adc8ce38ca2702a68797/diff:/mnt/.ix-apps/docker/overlay2/b2db81423c3920fd5a2acfedf93df178aee24512f549aeecc5a2d287a086eb5a/diff:/mnt/.ix-apps/docker/overlay2/67e8b4a5c85c251197295b184b043dec5b3f72f8974d7253fb36cb3358a18d58/diff:/mnt/.ix-apps/docker/overlay2/1da8b0c0be9573c1c5eff823b2bd476f9cabafa1d85adc60afc30bc6e24c165f/diff:/mnt/.ix-apps/docker/overlay2/8e400f4950e8bafb227c531f90625db9e25af395fcd96f6541fa977773c8045e/diff:/mnt/.ix-apps/docker/overlay2/68cff030d50ce064eadc82b807b075b6de16c1706691567314093ca55ca532a3/diff:/mnt/.ix-apps/docker/overlay2/2feb21454f60263115b2bf2ad0c33bba86c03862f0057d588d9faac7c1c5a2ef/diff:/mnt/.ix-apps/docker/overlay2/7b3cdc6d290e095ae183500595f1ecfe457bdfb98a03ca6cbfffb0167b5ec977/diff:/mnt/.ix-apps/docker/overlay2/a358fc6d20d82a289982321151ffcbc279205665b898e55a4c9232c113c8cda3/diff:/mnt/.ix-apps/docker/overlay2/92e878388200051d8407a8f2050f1f8fac7b931efee1150a061a3862458e80d6/diff:/mnt/.ix-apps/docker/overlay2/78b28fca7e89651a7c6e0510ce493d678af5118b16472a253f479b402f155870/diff:/mnt/.ix-apps/docker/overlay2/6c1d107fbbf66c271a24b20c544ce67d4b3cb0bf5d27d2c1299819d7ea05330e/diff:/mnt/.ix-apps/docker/overlay2/57e9d9cfeeb7d2e3fde656b8821ed2e9caafa9e4ee4ff6c463aebe4812b46641/diff:/mnt/.ix-apps/docker/overlay2/b1034dbedba6cc757c4bd8153234987b88ee1e8bbf2375025f30249e163af682/diff:/mnt/.ix-apps/docker/overlay2/8763b43a35c7cbd1402ccfca1e382f72a0debb33436cd1c3284dab3693fee028/diff:/mnt/.ix-apps/docker/overlay2/f7bd1cd1c246e2ccd36b9233b8fc781c406613ec85c628e0c8df8654dd7762dc/diff:/mnt/.ix-apps/docker/overlay2/f7d989e3485522de3d120a92c999d35529988cd888bd2af015cdc7b1c9c39ded/diff”,
“MergedDir”: “/mnt/.ix-apps/docker/overlay2/daa5483ef60e7e9c7a9000bc3426b33c0f82d55663956f441cf6cbe819dc8955/merged”,
“UpperDir”: “/mnt/.ix-apps/docker/overlay2/daa5483ef60e7e9c7a9000bc3426b33c0f82d55663956f441cf6cbe819dc8955/diff”,
“WorkDir”: “/mnt/.ix-apps/docker/overlay2/daa5483ef60e7e9c7a9000bc3426b33c0f82d55663956f441cf6cbe819dc8955/work”
},
“Name”: “overlay2”
},
“Mounts”: [
{
“Type”: “bind”,
“Source”: “/mnt/Applications/nextcloud/html”,
“Destination”: “/var/www/html”,
“Mode”: “”,
“RW”: true,
“Propagation”: “rprivate”
},
{
“Type”: “bind”,
“Source”: “/mnt/Applications/nextcloud/data”,
“Destination”: “/var/www/html/data”,
“Mode”: “”,
“RW”: true,
“Propagation”: “rprivate”
},
{
“Type”: “bind”,
“Source”: “/mnt/CoreStorage/WJN_Fileserver”,
“Destination”: “/mnt/Applications/nextcloud/data/bniester”,
“Mode”: “”,
“RW”: true,
“Propagation”: “rprivate”
},
{
“Type”: “volume”,
“Name”: “8cc4ce8d16c4d0777b0689d85a3f7229f96839e7cddb7ca1e0e59ce470ab8045”,
“Source”: “/mnt/.ix-apps/docker/volumes/8cc4ce8d16c4d0777b0689d85a3f7229f96839e7cddb7ca1e0e59ce470ab8045/_data”,
“Destination”: “/tmp”,
“Driver”: “local”,
“Mode”: “z”,
“RW”: true,
“Propagation”: “”
}
],
“Config”: {
“Hostname”: “1a8ced0f17e7”,
“Domainname”: “”,
“User”: “0:0”,
“AttachStdin”: false,
“AttachStdout”: true,
“AttachStderr”: true,
“ExposedPorts”: {
“80/tcp”: {}
},
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“PHP_UPLOAD_LIMIT=300G”,
“NEXTCLOUD_ADMIN_PASSWORD=S@i1ing!!”,
“REDIS_HOST_PORT=6379”,
“POSTGRES_HOST=postgres:5432”,
“REDIS_HOST=redis”,
“OVERWRITEPROTOCOL=https”,
“POSTGRES_USER=nextcloud”,
“TRUSTED_PROXIES=127.0.0.1 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8”,
“APACHE_DISABLE_REWRITE_IP=1”,
“POSTGRES_DB=nextcloud”,
“NEXTCLOUD_DATA_DIR=/var/www/html/data”,
“NEXTCLOUD_ADMIN_USER=ncadmin”,
“NVIDIA_VISIBLE_DEVICES=void”,
“PHP_MEMORY_LIMIT=512M”,
“POSTGRES_PASSWORD=S@i1ing!!”,
“TZ=Etc/UTC”,
“NEXTCLOUD_TRUSTED_DOMAINS=127.0.0.1 localhost nextcloud 192.168.1.200”,
“UMASK_SET=002”,
“REDIS_HOST_PASSWORD=123GoBlue”,
“UMASK=002”,
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,
“PHPIZE_DEPS=autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c”,
“PHP_INI_DIR=/usr/local/etc/php”,
“APACHE_CONFDIR=/etc/apache2”,
“APACHE_ENVVARS=/etc/apache2/envvars”,
“PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64”,
“PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64”,
“PHP_LDFLAGS=-Wl,-O1 -pie”,
“GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA”,
“PHP_VERSION=8.3.21”,
“PHP_URL=https://www.php.net/distributions/php-8.3.21.tar.xz”,
“PHP_ASC_URL=https://www.php.net/distributions/php-8.3.21.tar.xz.asc”,
“PHP_SHA256=4dfb329f209a552c3716394fc123bb62e80a468b55ce27fc8cb0fd5f30b9dcd6”,
“PHP_OPCACHE_MEMORY_CONSUMPTION=128”,
“APACHE_BODY_LIMIT=1073741824”,
“NEXTCLOUD_VERSION=31.0.4”
],
“Cmd”: [
“apache2-foreground”
],
“Healthcheck”: {
“Test”: [
“CMD-SHELL”,
“curl --silent --output /dev/null --show-error --fail --header "Host: localhost" http://127.0.0.1:80/status.php
],
“Interval”: 10000000000,
“Timeout”: 5000000000,
“StartPeriod”: 10000000000,
“Retries”: 30
},
“Image”: “ix-nextcloud:31.0.4_feadd5cae8f72c45cb2ec7c15166ae75f0701bb991359c7b3b489310abc3e37a”,
“Volumes”: {
“/var/www/html”: {}
},
“WorkingDir”: “/var/www/html”,
“Entrypoint”: [
“/entrypoint.sh”
],
“OnBuild”: null,
“Labels”: {
“com.docker.compose.config-hash”: “cdfd33421ab18e9c49f324906970cf52de41b41b82b98ae8f9967f9c4bae335d”,
“com.docker.compose.container-number”: “1”,
“com.docker.compose.depends_on”: “permissions:service_completed_successfully:false,postgres:service_healthy:false,redis:service_healthy:false”,
“com.docker.compose.image”: “sha256:46e5d4bc974251732061d67ead41ec64c7a68451a7a1450d0cd976a07f005de3”,
“com.docker.compose.oneoff”: “False”,
“com.docker.compose.project”: “ix-nextcloud”,
“com.docker.compose.project.config_files”: “/mnt/.ix-apps/app_configs/nextcloud/versions/1.6.28/templates/rendered/docker-compose.yaml”,
“com.docker.compose.project.working_dir”: “/mnt/.ix-apps/app_configs/nextcloud/versions/1.6.28/templates/rendered”,
“com.docker.compose.service”: “nextcloud”,
“com.docker.compose.version”: “2.32.3”
},
“StopSignal”: “SIGWINCH”
},
“NetworkSettings”: {
“Bridge”: “”,
“SandboxID”: “f287afc31c376d1d85b5cc0dfbe23a47301515c2f4234fc3269350f12d743501”,
“SandboxKey”: “/var/run/docker/netns/f287afc31c37”,
“Ports”: {
“80/tcp”: null
},
“HairpinMode”: false,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“EndpointID”: “”,
“Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “”,
“IPPrefixLen”: 0,
“IPv6Gateway”: “”,
“MacAddress”: “”,
“Networks”: {
“ix-nextcloud_default”: {
“IPAMConfig”: null,
“Links”: null,
“Aliases”: [
“ix-nextcloud-nextcloud-1”,
“nextcloud”
],
“MacAddress”: “02:42:ac:10:02:06”,
“DriverOpts”: null,
“NetworkID”: “be05f362091362b762594e337ff7bf5b4b19bd0892a5953039705599bb436bc1”,
“EndpointID”: “b10d8988ac2a52c8f4569c8d7a8e1540bab3f0870c1ace2a7a11cb6585acd9e2”,
“Gateway”: “172.16.2.1”,
“IPAddress”: “172.16.2.6”,
“IPPrefixLen”: 24,
“IPv6Gateway”: “fdd0:0:0:2::1”,
“GlobalIPv6Address”: “fdd0:0:0:2::6”,
“GlobalIPv6PrefixLen”: 64,
“DNSNames”: [
“ix-nextcloud-nextcloud-1”,
“nextcloud”,
“1a8ced0f17e7”
]
}
}
}
}
]