LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

crane-config

retrieve container image configuration

TLDR

Get image configuration
$ crane config [image]
copy
Get config as JSON
$ crane config [image] | jq .
copy

SYNOPSIS

crane config [options] image

DESCRIPTION

crane config retrieves the configuration blob for a container image. This includes environment variables, entrypoint, command, working directory, labels, exposed ports, and other image metadata defined in the OCI image specification.Output is in JSON format, making it easy to pipe to jq for field extraction.

PARAMETERS

image

Container image reference (e.g., `ubuntu:latest`, `ghcr.io/org/image:tag`).
--platform os/arch
Specify platform for multi-arch images (e.g., `linux/amd64`).

CAVEATS

Requires network access to the container registry. Private registries require authentication via `crane auth login`. Multi-arch images return the config for the host platform unless `--platform` is specified.

SEE ALSO

Copied to clipboard
Kai