1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-10-05 09:53:21 +08:00

Use docker 1.13 to allow overlay networks

- Print error if resizing fails
This commit is contained in:
Marcos Lilljedahl
2016-11-13 01:09:29 -03:00
parent b37f2469c8
commit 54378862b3
5 changed files with 19 additions and 9 deletions

View File

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