Recreate AIO network from scratch

I have been using nextcloud for the past months without any issues, but recently it stopped working after updating. The AIO interface does work, but whenever I tried to start the containers they wouldn’t be able to communicate with each other. I was having the same error.
It looks like the docker network is set to internal: false, so the containers are unable to communicate with each other.
Here is my compose file:

services:
  caddy:
    image: caddy:alpine
    restart: unless-stopped
    container_name: caddy
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - ./certs:/certs
      - ./config:/config
      - ./data:/data
      - ./sites:/srv

  nextcloud:
    image: nextcloud/all-in-one:latest
    restart: unless-stopped
    container_name: nextcloud-aio-mastercontainer
    ports:
      - "8080:8080"
    environment:
      - APACHE_PORT=11000
      - NEXTCLOUD_UPLOAD_LIMIT=10G
      - NEXTCLOUD_MEMORY_LIMIT=1024M
      - MAX_INPUT_TIME=86400
      - MAX_EXECUTION_TIME=86400
      - APACHE_BODY_LIMIT = 0
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - /var/run/docker.sock:/var/run/docker.sock:ro
    depends_on:
      - caddy

  tunnel:
    container_name: nextcloud-tunnel
    image: cloudflare/cloudflared
    restart: unless-stopped
    command: tunnel run
    environment:
      - TUNNEL_TOKEN=TOKEN

Here the output of docker network inspect bridge:

[
    {
        "Name": "bridge",
        "Id": "828c972c6260e6653411f7b306b1c30fc7ad34487254639548d05f4090589d92",
        "Created": "2025-02-03T08:40:14.1271645Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.17.0.0/16",
                    "Gateway": "172.17.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {},
        "Options": {
            "com.docker.network.bridge.default_bridge": "true",
            "com.docker.network.bridge.enable_icc": "true",
            "com.docker.network.bridge.enable_ip_masquerade": "true",
            "com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
            "com.docker.network.bridge.name": "docker0",
            "com.docker.network.driver.mtu": "1500"
        },
        "Labels": {}
    }
]

And the output of docker network inspect nextcloud-aio

[
    {
        "Name": "nextcloud-aio",
        "Id": "ee822dcdd7125396859fbd4a870460e0b279965cfe8744bd779dc3ed4f66e39f",
        "Created": "2025-02-03T08:51:14.089164206Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.19.0.0/16",
                    "Gateway": "172.19.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "2a4d326a6f6808c54018756d75565d6b8cb1207f062768a9d7a2dc708ed07c15": {
                "Name": "nextcloud-aio-imaginary",
                "EndpointID": "6570d64c6466eb1b177b2c364c7430cb91d056208f10fdb4bf8869bd3b975e1b",
                "MacAddress": "02:42:ac:13:00:06",
                "IPv4Address": "172.19.0.6/16",
                "IPv6Address": ""
            },
            "32e55607cce1c13059a1b15489297f1fa1e39d88796d1a855332fc7c9f9ae111": {
                "Name": "nextcloud-aio-mastercontainer",
                "EndpointID": "cc972b3f7f97cc03023695c16d306ef5c162174a87abcd2dae1659441ed2d338",
                "MacAddress": "02:42:ac:13:00:02",
                "IPv4Address": "172.19.0.2/16",
                "IPv6Address": ""
            },
            "6ce5be430fe655a99c5172672e58f81a4227c14194e428f4dd60a96bb20e7fe2": {
                "Name": "nextcloud-aio-notify-push",
                "EndpointID": "d79d726e28fab580c8b988c168b58c656d6f456462e59fea9dba69d8888fa635",
                "MacAddress": "02:42:ac:13:00:08",
                "IPv4Address": "172.19.0.8/16",
                "IPv6Address": ""
            },
            "855fdaebc12ca5c497ab989d4816e845b4d011c9bc8d6ba8d0229006c50d9e41": {
                "Name": "nextcloud-aio-apache",
                "EndpointID": "555698109bde2f94cabc88410998a668db3dbdc0d5209254328c3996fd0020e7",
                "MacAddress": "02:42:ac:13:00:09",
                "IPv4Address": "172.19.0.9/16",
                "IPv6Address": ""
            },
            "a9933b35f8dbd68641b1592553a71910d50a685b641fc1cd71f6f84b4c0e6b8c": {
                "Name": "nextcloud-aio-fulltextsearch",
                "EndpointID": "987c3b237005ebba745bc3c1ba7c172b72858c2cdf97a1e617016077391bda82",
                "MacAddress": "02:42:ac:13:00:05",
                "IPv4Address": "172.19.0.5/16",
                "IPv6Address": ""
            },
            "c754c8e1d7f4c19a5629fce8ac9d2f9103d45d8eee8f72b9bf089f1763269660": {
                "Name": "nextcloud-aio-database",
                "EndpointID": "767cc3500009bdc1763bdf4a9cce116b932d29f642d83eacca29e09d0975cd16",
                "MacAddress": "02:42:ac:13:00:03",
                "IPv4Address": "172.19.0.3/16",
                "IPv6Address": ""
            },
            "e82254fe99e0604f364ae55a242bb2e7d1c9edaf9c01a83ef00bad82e92550c8": {
                "Name": "nextcloud-aio-redis",
                "EndpointID": "e077a4094b5599c0ff18c931bc16cc5a27aee9c4ffc33300efad61b3e27464f1",
                "MacAddress": "02:42:ac:13:00:04",
                "IPv4Address": "172.19.0.4/16",
                "IPv6Address": ""
            },
            "eb7766002e8d003738c6010e2596a7872309de555a870da71b46a609e6f1c400": {
                "Name": "nextcloud-aio-nextcloud",
                "EndpointID": "69d1b85bd21825c8246806642d99a4b7a51eb6adb77a36ed803d19ebab680d12",
                "MacAddress": "02:42:ac:13:00:07",
                "IPv4Address": "172.19.0.7/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

I am running nextcloud on an Alpine LXC in proxmox. Containers are running but nextcloud is waiting for database to start, but database logs show they are accepting connections, so I’m guessing the containers are unable to talk to each other, but I don’t know how to solve that without a clean start, which I’d like to avoid because of all the data that I have stored in the docker volume.

from your docker network inspect nextcloud-aio it looks like all containers participate in the nextcloud-aio network, so this should be not a reason why app can’t connect to DB.

to fully reset your instance please refer to the docs GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.. as you want to keep your data you might want to first export/extract the data out the existing volumes

From what I was seeing in other posts, it looks like the fact that the nextcloud-aio network has "Internal": false it might look like they cannot talk to each other (I might be wrong though, I am not an expert in docker).

No, Internal: true means that they will not be able to talk to any services outside the network.

See How to recreate the `nextcloud-aio` network? · nextcloud/all-in-one · Discussion #4989 · GitHub

After following that guide to recreate the nextcloud-aio, now it shows me a different error: Could not resolve the host nextcloud.com.
I followed both links suggesting how to fix it, no luck.

Hm, is the container part of any network and can you try to restart it another time?

docker network ls:

NETWORK ID     NAME            DRIVER    SCOPE
5db88ca09975   aio_default     bridge    local
828c972c6260   bridge          bridge    local
a7cebff84974   host            host      local
48701bab8860   nextcloud-aio   bridge    local
bbf7302d63ae   none            null      local

The container is only for the instance of nextcloud. I have both added and removed it from aio_default, had the same issue. Same goes for network nextcloud-aio. No matter whether it is connected or not, I still get the issue that cannot resolve the host. I have changed the DNS config, set it to 1.1.1.1 and 8.8.8.8, no luck (I have connectivity at the host). I am using adguard home as DNS at the host, but I can reach nextcloud.com from the host, so I don’t think that could be it…

Can you post the output of sudo docker inspect nextcloud-aio-mastercontainer here?

It restarts every few seconds

[
    {
        "Id": "53dd28634a59a64804ef85918b0e8d7a6bfe05ef4eed7f3da377fef57a0e6ed7",
        "Created": "2025-02-03T19:20:59.332009257Z",
        "Path": "/start.sh",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 566164,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2025-02-04T08:50:46.418708143Z",
            "FinishedAt": "2025-02-04T08:49:48.130461927Z",
            "Health": {
                "Status": "starting",
                "FailingStreak": 0,
                "Log": []
            }
        },
        "Image": "sha256:cf2922927894aeeb943476ca9d2061db7c5d277fd6f8d040bd1d0256ad2e068b",
        "ResolvConfPath": "/var/lib/docker/containers/53dd28634a59a64804ef85918b0e8d7a6bfe05ef4eed7f3da377fef57a0e6ed7/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/53dd28634a59a64804ef85918b0e8d7a6bfe05ef4eed7f3da377fef57a0e6ed7/hostname",
        "HostsPath": "/var/lib/docker/containers/53dd28634a59a64804ef85918b0e8d7a6bfe05ef4eed7f3da377fef57a0e6ed7/hosts",
        "LogPath": "/var/lib/docker/containers/53dd28634a59a64804ef85918b0e8d7a6bfe05ef4eed7f3da377fef57a0e6ed7/53dd28634a59a64804ef85918b0e8d7a6bfe05ef4eed7f3da377fef57a0e6ed7-json.log",
        "Name": "/nextcloud-aio-mastercontainer",
        "RestartCount": 64,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/var/run/docker.sock:/var/run/docker.sock:ro"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "aio_default",
            "PortBindings": {
                "8080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ]
            },
            "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,
            "Mounts": [
                {
                    "Type": "volume",
                    "Source": "nextcloud_aio_mastercontainer",
                    "Target": "/mnt/docker-aio-config",
                    "VolumeOptions": {}
                }
            ],
            "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/170512c6d56c95284d4efc645024fa3b35e442106ebfd0ff2d5a9950b769afc8-init/diff:/var/lib/docker/overlay2/2496dab202948305a3e20bee0f0a4863502c2848f21ee9af3f132242fb94173c/diff:/var/lib/docker/overlay2/b07feaa608db37abad2a547d3e74e4c969cf7fca558d6544427f57eb8ce8ae57/diff:/var/lib/docker/overlay2/06df6639626c3f21a2b6f6bceeaf56edb3c650145fe3d2ed3968fd0e947b562f/diff:/var/lib/docker/overlay2/5005eb68e382420cff80b90989331e29fb9ef680679573846d162d9f76666e78/diff:/var/lib/docker/overlay2/7de47922d7e4bd0769a36b5dffaa72a46454e3f2995252ad1080e4c4f2015076/diff:/var/lib/docker/overlay2/30ab9032c5350eb0804b5c52d5441ccaff8be2d4c1e20f03d947e2a5b1bcd7b2/diff:/var/lib/docker/overlay2/13704ddccf768a992bcd760fa2456921d62071407c86add562086473a7f28a14/diff:/var/lib/docker/overlay2/d68f20fb96861aa09a8bc179118813c9e137bd0204e5fcd46351031734ee09a4/diff:/var/lib/docker/overlay2/892872a0981e929ce9580b37b7ebb002dd03e23e3de6fa72b7b8303e99080475/diff:/var/lib/docker/overlay2/6837b823f60fe616d66b52a3348800ed98d352020fdce95d48bddfae2cab8e1c/diff:/var/lib/docker/overlay2/4a34150ca993871ad7c6f7ae8129ba7adf78bd1dab5baacbdbf56dad4a0b5736/diff:/var/lib/docker/overlay2/a5af6e8f5f558c37df36b71e447cf64e6b6d09da96bf950b02b407f9e1fe7ab8/diff:/var/lib/docker/overlay2/03a864cc6a0a524f10cf6cb6ab137e84e2599e967a5e6379c8083f42d803fc44/diff:/var/lib/docker/overlay2/993c3ca19851047b3217c34f1a4fbdd7c7f7e3e4724649bf5a1a51718bd1f093/diff:/var/lib/docker/overlay2/9b0f84d7b8681395498f174c42d1f9791f63953664c22230fcdd3e2e90757496/diff:/var/lib/docker/overlay2/a37c38e6fcb726c0b6abbb2ab22301b4e9c2392777fe2bbed5cce3caec03329b/diff:/var/lib/docker/overlay2/926090b0229018dad00df45b5dcce1a557345d5189f12efb0474ea609c3e1497/diff:/var/lib/docker/overlay2/d0f6ee1fc75d75c668cf61a01909c874ab4d9eb32276e8a6ef3e3da087b1a93f/diff:/var/lib/docker/overlay2/8d2d90ff61aa2b3a35b0135b37e7351ca20da33ae1ed3b661a000b0e014998d1/diff",
                "MergedDir": "/var/lib/docker/overlay2/170512c6d56c95284d4efc645024fa3b35e442106ebfd0ff2d5a9950b769afc8/merged",
                "UpperDir": "/var/lib/docker/overlay2/170512c6d56c95284d4efc645024fa3b35e442106ebfd0ff2d5a9950b769afc8/diff",
                "WorkDir": "/var/lib/docker/overlay2/170512c6d56c95284d4efc645024fa3b35e442106ebfd0ff2d5a9950b769afc8/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "volume",
                "Name": "nextcloud_aio_mastercontainer",
                "Source": "/var/lib/docker/volumes/nextcloud_aio_mastercontainer/_data",
                "Destination": "/mnt/docker-aio-config",
                "Driver": "local",
                "Mode": "z",
                "RW": true,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "53dd28634a59",
            "Domainname": "",
            "User": "root",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "80/tcp": {},
                "8080/tcp": {},
                "8443/tcp": {},
                "9000/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "MAX_EXECUTION_TIME=86400",
                "APACHE_BODY_LIMIT = 0",
                "APACHE_PORT=11000",
                "NEXTCLOUD_UPLOAD_LIMIT=10G",
                "NEXTCLOUD_MEMORY_LIMIT=1024M",
                "MAX_INPUT_TIME=86400",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "PHPIZE_DEPS=autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c",
                "PHP_INI_DIR=/usr/local/etc/php",
                "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.15",
                "PHP_URL=https://www.php.net/distributions/php-8.3.15.tar.xz",
                "PHP_ASC_URL=https://www.php.net/distributions/php-8.3.15.tar.xz.asc",
                "PHP_SHA256=3df5d45637283f759eef8fc3ce03de829ded3e200c3da278936a684955d2f94f"
            ],
            "Cmd": null,
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "/healthcheck.sh"
                ]
            },
            "Image": "nextcloud/all-in-one:latest",
            "Volumes": null,
            "WorkingDir": "/var/www/docker-aio",
            "Entrypoint": [
                "/start.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "com.docker.compose.config-hash": "1c6592c2fd4956678c29c00abdba43c38f02dc7a1091ac52dbc7a5e3746ffe48",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "caddy:service_started:false",
                "com.docker.compose.image": "sha256:cf2922927894aeeb943476ca9d2061db7c5d277fd6f8d040bd1d0256ad2e068b",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "aio",
                "com.docker.compose.project.config_files": "/root/AIO/docker-compose.yaml",
                "com.docker.compose.project.working_dir": "/root/AIO",
                "com.docker.compose.replace": "7bbe8c8767698663d3f1e463dbc0a8583077ca2b2cb1671cd36f5a4b711fe6d2",
                "com.docker.compose.service": "nextcloud",
                "com.docker.compose.version": "2.31.0"
            },
            "StopSignal": "SIGQUIT"
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "dbb6b0d55fbc8463609c8b9ad5b75347e060d49630289d3f9e79d118ff93c10c",
            "SandboxKey": "/var/run/docker/netns/dbb6b0d55fbc",
            "Ports": {
                "80/tcp": null,
                "8080/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8080"
                    }
                ],
                "8443/tcp": null,
                "9000/tcp": null
            },
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "aio_default": {
                    "IPAMConfig": {},
                    "Links": null,
                    "Aliases": [],
                    "MacAddress": "02:42:ac:13:00:04",
                    "DriverOpts": {},
                    "NetworkID": "5db88ca0997509bf099ac0f77a47aa734691cf66282629eca60b8d78cc7a1712",
                    "EndpointID": "fdba9b99469099d4fdf8300efaa417731bca6c3985dbecf60efa73156fe186d6",
                    "Gateway": "172.19.0.1",
                    "IPAddress": "172.19.0.4",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "nextcloud-aio-mastercontainer",
                        "53dd28634a59"
                    ]
                },
                "nextcloud-aio": {
                    "IPAMConfig": {},
                    "Links": null,
                    "Aliases": [],
                    "MacAddress": "02:42:ac:12:00:02",
                    "DriverOpts": {},
                    "NetworkID": "ce7da45edbb60e204cb45c92cd3d126d11aa1db8c353f029c42aea24850e32ca",
                    "EndpointID": "b980c00ef8ceaa202c397fcf9021bd87570c4a906e32a6ed55b255d825f2245b",
                    "Gateway": "172.18.0.1",
                    "IPAddress": "172.18.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "nextcloud-aio-mastercontainer",
                        "53dd28634a59"
                    ]
                }
            }
        }
    }
]

Looks good. And can you also post the output of sudo docker network inspect nextcloud-aio here?

[
    {
        "Name": "nextcloud-aio",
        "Id": "ce7da45edbb60e204cb45c92cd3d126d11aa1db8c353f029c42aea24850e32ca",
        "Created": "2025-02-04T07:44:44.582301413Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "172.18.0.0/16",
                    "Gateway": "172.18.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "53dd28634a59a64804ef85918b0e8d7a6bfe05ef4eed7f3da377fef57a0e6ed7": {
                "Name": "nextcloud-aio-mastercontainer",
                "EndpointID": "48f6f298465133fa83b3a8ec2d657d376d40a7c1967341d45c5a7abb1e1d4fe0",
                "MacAddress": "02:42:ac:12:00:02",
                "IPv4Address": "172.18.0.2/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

Hm, looks also good. Have you already tried to restart the server?

Yes, I have restarted the container and the whole proxmox server, no luck with any of both.