cmd/ctr: info marshal Container proto struct
Marshaling Container interface resulted in empty json. Use Container proto
struct to get proper container attributes.
@@ -31,7 +31,7 @@ var infoCommand = cli.Command{
if err != nil {
return err
}
- cjson, err := json.MarshalIndent(container, "", " ")
+ cjson, err := json.MarshalIndent(container.Proto(), "", " ")
if err != nil {
return err
}
