Complete output of docker info

Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
This commit is contained in:
zouyee 2019-10-07 19:24:15 +08:00
parent cd1fbf7cd4
commit 361f20c874

View File

@ -74,7 +74,7 @@ func (d *DockerValidator) Validate(spec SysSpec) (error, error) {
func (d *DockerValidator) unmarshalDockerInfo(b []byte, info *dockerInfo) error {
if err := json.Unmarshal(b, &info); err != nil {
return errors.Wrap(err, "could not unmarshal the JSON output of 'docker info'")
return errors.Wrapf(err, "could not unmarshal the JSON output of 'docker info':\n%s\n", b)
}
return nil
}