未验证 提交 662f2c3e 编写于 作者: M Medya Ghazizadeh 提交者: GitHub

Merge pull request #10092 from afbjorklund/podman-debian

Handle podman installations without default bridge
......@@ -221,8 +221,13 @@ func podmanNetworkInspect(name string) (netInfo, error) {
return info, err
}
output := rr.Stdout.String()
if output == "" {
return info, fmt.Errorf("no bridge network found for %s", name)
}
// results looks like 172.17.0.0/16,172.17.0.1,1500
vals := strings.Split(strings.TrimSpace(rr.Stdout.String()), ",")
vals := strings.Split(strings.TrimSpace(output), ",")
if len(vals) == 0 {
return info, fmt.Errorf("empty list network inspect: %q", rr.Output())
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册