mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 18:27:25 +08:00
Create overlay networks by default
This commit is contained in:
parent
a0ffe28be9
commit
b79850c50f
@ -29,7 +29,7 @@ func GetContainerInfo(id string) (types.ContainerJSON, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CreateNetwork(name string) 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)
|
_, err := c.NetworkCreate(context.Background(), name, opts)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user