Ubuntu 16.04, kernel 4.4x
I happen to be using docker-compose, but getting the same issue.
I have consul to provide external key service. When I run it but don't tag any of the services with the "networks: -mynetwork", it all runs fine. As soon as I add the created network, I get this: "ERROR: error getting pools config from store: could not get pools config from store: Get http://10.0.1.180:8500/v1/kv/network/docker/network/v1.0/ipam/default/config/GlobalDefault/?consistent=: dial tcp 10.0.1.180:8500: getsockopt: connection refused"
Now, I notice ipam mentioned in there. does this mean that instead of defining my network like this:
that I should be using ipam somehow? If so, could someone explain/give example of how this should work?
EDIT: I went ahead and modified it to have ipam, config follows, but now I get this message: "ERROR: Invalid subnet : invalid CIDR address:"
- subnet: "192.168.0.0/24"
- gateway: "192.168.0.1"