Merge pull request #16740 from ygalblum/network-create-options

Update containers common package
This commit is contained in:
OpenShift Merge Robot
2022-12-06 10:56:47 -05:00
committed by GitHub
18 changed files with 54 additions and 22 deletions

View File

@ -143,7 +143,7 @@ func (ic *ContainerEngine) NetworkCreate(ctx context.Context, network types.Netw
if util.StringInSlice(network.Name, []string{"none", "host", "bridge", "private", "slirp4netns", "container", "ns"}) {
return nil, fmt.Errorf("cannot create network with name %q because it conflicts with a valid network mode", network.Name)
}
network, err := ic.Libpod.Network().NetworkCreate(network)
network, err := ic.Libpod.Network().NetworkCreate(network, nil)
if err != nil {
return nil, err
}