1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00

Create overlay networks by default

This commit is contained in:
Marcos Lilljedahl 2016-10-08 11:25:50 +02:00
parent a0ffe28be9
commit b79850c50f

View File

@ -29,7 +29,7 @@ func GetContainerInfo(id string) (types.ContainerJSON, error) {
}
func CreateNetwork(name string) error {
opts := types.NetworkCreate{Attachable: true}
opts := types.NetworkCreate{Attachable: true, Driver: "overlay"}
_, err := c.NetworkCreate(context.Background(), name, opts)
if err != nil {