Docker Community Forums

Share and learn in the Docker community.

Docker API and specify network - example anyone?

docker

(Alanhs) #1

Hi,

I am having real trouble creating a container that is connected to a ‘specified’ network (i.e not the default one) using an API call (1.22). In this case I am using an overlay network - but I don’t think this is relevant. I can bring the container up manually so I am pretty sure its just the way I am using the API.

I haven’t manage to find any examples and the documentation doesn’t go into too much detail in this respect - can anyone point me an API example that specifies the network.


(Dvohra) #2

The flannel network could be used instead of the default docker0. Refer