1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-13 17:42:53 +08:00

Merge branch 'master' of github.com:franela/play-with-docker

This commit is contained in:
Jonathan Leibiusky (@xetorthio) 2016-10-08 11:27:14 +02:00
commit 1d550aaa46

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 {