I’ve been attempting to test drive the latest networking features in 1.9 and have been unsuccessful. I’m using Consul as the KVS and docker-machine to provision a new host. The main network is 10.0.0.0/24.
Create new host:
docker-machine create -d generic --generic-ip-address=10.0.0.5 --engine-opt"cluster-store=consul://10.0.0.1:8500" --engine-opt=“cluster-advertise=10.0.0.5:0” net-demo0
On the new host (net-demo0) I create the following network:
docker network create -d overlay --subnet=10.1.0.0/16 overlay-0
I then run a new container:
docker run -itd --name=web --net=overlay-0 nginx
It fails with the following:
Error response from daemon: Cannot start container : subnet sandbox join failed for “10.1.0.0/16”: vxlan interface creation failed for subnet “10.1.0.0/16”: failed in prefunc: failed to set namespace on link “vxlana9198e”: invalid argument
I have no clue what I’m doing wrong. Thanks!