Unable to create overlay network

Hello community
I’m working with following docker version.

Version: 20.10.9-ce
API version: 1.41
Go version: go1.16.8
Git commit: 79ea9d308018
Built: Wed Oct 6 12:00:00 2021
OS/Arch: linux/amd64
Context: default
Experimental: true

On my docker i have a consul container.
bf4877314321 progrium/consul “/bin/start -server …” 19 hours ago Up 56 minutes 53/tcp, 53/udp, 8300-8302/tcp, 8400/tcp, 8301-8302/udp,>8500/tcp, :::8500->8500/tcp consul

I need to add an overlay network and used following command to do it

docker network create --driver overlay --subnet= --gateway= idmoverlay

The result was following error:
Error response from daemon: error getting pools config from store: could not get pools config from store: Unexpected response code: 500

What could be the cause of this error?

Thanks in advance for your help.

How did you configure the Docker daaemon to use consul for overlay networks?

Hi rimelek

I created the consil at this way.

DOCKER_OPTS= "-H tcp:// -H unix:///var/run/docker.sock --cluster-advertise eth0:2375 --cluster-store consul://"

Is there a proxy server between consul and Docker? I have never needed consul before, so I configured consul for the first time after your first post. My configuration was similar to yours. I installed it in a Docker container and it worked, except when I stopped the consul container. Obviously, yours is running, but if I don’t know why consul would respond with HTTP 500.

Hi Rimelek

No we have no proxies. I was able to resove it. I needet to remove the consul container, then readd the consul container, and then i was able to add also the overlay network.
Very strange theses steps.