cmd/ctr: info marshal Container proto struct

Marshaling Container interface resulted in empty json. Use Container proto
struct to get proper container attributes.

Signed-off-by: Sunny Gogoi <me@darkowlzz.space>
This commit is contained in:
Sunny Gogoi 2017-07-09 18:14:17 +05:30
parent b9fb2793a8
commit 99461053f3

View File

@ -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
}