manifest/docker_schema2.go
func (m *Schema2) Inspect(configGetter func(types.BlobInfo) ([]byte, error)) (*types.ImageInspectInfo, error) {
	config, err := configGetter(m.ConfigInfo())
	if err != nil {
		return nil, err
	}
	s2 := &Schema2Image{}
	if err := json.Unmarshal(config, s2); err != nil {
		return nil, err
	}
	i := &types.ImageInspectInfo{
		Tag:           "",
		Created:       &s2.Created,
		DockerVersion: s2.DockerVersion,
		Architecture:  s2.Architecture,
		Os:            s2.OS,
		Layers:        layerInfosToStrings(m.LayerInfos()),
	}
	if s2.Config != nil {
		i.Labels = s2.Config.Labels
	}
	return i, nil
}
func (m *Schema2) Inspect(configGetter func(types.BlobInfo) ([]byte, error)) (*types.ImageInspectInfo, error) {
	config, err := configGetter(m.ConfigInfo())
	if err != nil {
		return nil, err
	}
	s2 := &Schema2Image{}
	if err := json.Unmarshal(config, s2); err != nil {
		return nil, err
	}
	i := &types.ImageInspectInfo{
		Tag:           "",
		Created:       &s2.Created,
		DockerVersion: s2.DockerVersion,
		Architecture:  s2.Architecture,
		Os:            s2.OS,
		Layers:        layerInfosToStrings(m.LayerInfos()),
	}
	if s2.Config != nil {
		i.Labels = s2.Config.Labels
	}
	return i, nil
}
// Inspect returns various information for (skopeo inspect) parsed from the manifest and configuration.