fixes #7802, when api version 1.11 is `json.Marshal`ing the container st...

fixes #7802, when api version 1.11 is `json.Marshal`ing the container struct

Signed-off-by: Jessica Frazelle <jfrazelle@users.noreply.github.com>
This closes underlying connection according to documentation. So you don't need `c.Close()`.