Docker Swarm running on Ubuntu 24.04 on 3 VM created on ProxMox not accepting http request

Your commands look good to me.

Though, what doesn’t look good is that the vm’s subnet iip range is within the default ip range docker uses for overlay networks, which is 10.0.0.0/8

You can configure it in the file /etc/docker/daemon.json. If the file doesn’t exist, or the file exists, and the configuration block is missing means that the default values are used.

You can check the current settings using this command: docker info --format '{{json .Swarm.Cluster.DefaultAddrPool}}' (prefix with sudo if required)

The default setting in /etc/docker/daemon.json would look like this:

   {
      "default-address-pools": [
        {
          "base": "10.0.0.0/8",
          "size": 24
        }
      ]
    }

You could change it to a different subnet:

   {
      "default-address-pools": [
        {
          "base": "192.168.0.0/16",
          "size": 24
        }
      ]
    }

I think you will need to remove existing overlay networks, so they can be re-created using the new range.

You might find this discussion helpful: