Overlay Network Error: Cannot start container

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

Create new host:
docker-machine create -d generic --generic-ip-address= --engine-opt"cluster-store=consul://" --engine-opt=“cluster-advertise=” net-demo0

On the new host (net-demo0) I create the following network:
docker network create -d overlay --subnet= 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 “”: vxlan interface creation failed for subnet “”: failed in prefunc: failed to set namespace on link “vxlana9198e”: invalid argument

I have no clue what I’m doing wrong. Thanks!

1 Like

Problem solved - I didn’t realize overlay networking isn’t supported on Kernel versions <3.15. The error msg could be improved.

This requirements (kernel > 3.15) should be mentionned in the documentation (LTS ubuntu comes with 3.13)

So you solved it by upgrade Kernerl versions? Is there any else solution?

Yes, that addressed it.