Skip to main content
porter registry contains commands for working with the container registries linked to your Porter project, including listing registries, browsing repositories and images, and pushing local images without running docker login.

Prerequisites

  • You’ve logged in to the Porter CLI after running porter auth login
  • You’re connected to the correct project by running porter config set-project
  • At least one container registry is linked to the project
  • A running local Docker daemon (required for porter registry push)
If your project has more than one linked registry, either select one with porter config set-registry or pass --registry <id> on each command. Run porter registry list to see the available IDs.

porter registry push

Push a local image to a registry linked to the project. Credentials are exchanged automatically — no docker login is required — and the remote repository is created on the first push. Usage:
Options: When the project has more than one linked registry URL, the CLI prompts interactively for which one to use. In non-interactive environments the command errors and asks you to pass --registry — it will not silently pick one. With --build, the image is built from the given context directory on your machine before it is pushed, using the same build path Porter apps use. Set DOCKER_BUILDKIT=1 to build with buildx, and use PORTER_BUILDKIT_ARGS to pass extra flags such as --platform. Builds target linux/amd64 by default. --json suppresses progress output on stdout so the JSON payload stays parseable. The payload has a single image field containing the fully qualified pushed reference.
Repository names are normalized to lowercase, with _ and . replaced by -, to match how the server stores them.

porter registry list

List the container registries linked to the current project. The currently selected registry (from porter config set-registry) is highlighted. Usage:
Displays a table with each registry’s ID, URL, and service (for example, ecr, gcr, dockerhub).

porter registry delete

Delete a linked registry from the project. Prompts for confirmation before removing. Usage:
Use the ID from porter registry list.

porter registry repo list

List the repositories inside the selected registry. Usage:
Uses the registry from porter config set-registry, or from --registry <id>.

porter registry image list

List the image tags in a repository along with their digests. Usage:
Uses the registry from porter config set-registry, or from --registry <id>.