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:
commit
1d550aaa46
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user