Fix the network inspect id
This fixes #22231 Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com> Upstream-commit: 864e362aa05ed2207d71471780068e951fe9d02e Component: engine
This commit is contained in:
@@ -36,8 +36,7 @@ func runInspect(dockerCli *client.DockerCli, opts inspectOptions) error {
|
||||
client := dockerCli.Client()
|
||||
|
||||
getNetFunc := func(name string) (interface{}, []byte, error) {
|
||||
i, err := client.NetworkInspect(context.Background(), name)
|
||||
return i, nil, err
|
||||
return client.NetworkInspectWithRaw(context.Background(), name)
|
||||
}
|
||||
|
||||
return inspect.Inspect(dockerCli.Out(), opts.names, opts.format, getNetFunc)
|
||||
|
||||
Reference in New Issue
Block a user