Use json.Encoder for container.writeHostConfig Upstream-commit: f87082f08e6b91a33e251215040350faa0d78d71 Component: engine