mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 01:57:32 +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 {
|
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