code: func HistoryFromConfig(imageJSON []byte, emptyLayer bool) (image.History, error) {
  	h := image.History{}
  	var v1Image image.V1Image
  	if err := json.Unmarshal(imageJSON, &v1Image); err != nil {
  		return h, err
  	}
  
  	return image.History{
  		Author:     v1Image.Author,
  		Created:    v1Image.Created,
  		CreatedBy:  strings.Join(v1Image.ContainerConfig.Cmd, " "),
  		Comment:    v1Image.Comment,
  		EmptyLayer: emptyLayer,
  	}, nil
  }
docs: // HistoryFromConfig creates a History struct from v1 configuration JSON