GoogleContainerTools/skaffold · error

image media type: %s

Error message

image media type: %s

What it means

Fires in GetPlatforms when the remote image's media type is neither a known index/list type nor a known single-image manifest type — an unrecognized/unsupported media type, so platform information cannot be extracted for the multi-platform check.

Source

Thrown at pkg/skaffold/docker/platform.go:70

		}
		for _, m := range manifests.Manifests {
			if m.Platform == nil || m.Platform.Architecture == "unknown" || m.Platform.OS == "unknown" {
				continue
			}
			p = append(p, util.ConvertFromV1Platform(*m.Platform))
		}
	case types.OCIManifestSchema1, types.DockerManifestSchema2:
		im, ok := i.(v1.Image)
		if !ok {
			return nil, fmt.Errorf("failed to interpret %q as image: %v", image, im)
		}
		cf, err := im.ConfigFile()
		if err != nil {
			return nil, err
		}
		p = append(p, spec.Platform{OS: cf.OS, Architecture: cf.Architecture})
	default:
		return nil, fmt.Errorf("image media type: %s", mt)
	}
	if err != nil {
		return nil, err
	}
	return p, nil
}

func getImage(image string) (ImageRef, error) {
	ref, err := name.ParseReference(image, name.WeakValidation)
	if err != nil {
		return nil, err
	}
	desc, err := remote.Get(ref, remote.WithAuthFromKeychain(primaryKeychain))
	if err != nil {
		return nil, err
	}
	if desc.MediaType.IsIndex() {
		return desc.ImageIndex()

View on GitHub (pinned to a1189de023)

Solutions

  1. Re-push the image with a standard builder producing OCI or Docker manifest media types
  2. Verify the artifact in the registry (manifest media type) is not corrupted
  3. Report the unsupported media type to skaffold maintainers
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at pkg/skaffold/docker/platform.go:70 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of GoogleContainerTools/skaffold@a1189de023 (2026-09-05). Data as JSON: /api/errors/67a9d22254d4b66a. Report an issue: GitHub.