Skip to content

Publish an image

HyperOptimizer runs Starter and Pro trials from your organization’s Container Images registry. Publish the image there after it passes a local trial check. Enterprise can allow images outside that registry.

Path Use it when
HPO CLI You want one command to build, publish, and launch from hpo.toml.
Docker commands below You want to publish an existing image and launch separately in the dashboard.
CI You want a tested image built and published for a specific source revision.

With [build] in your configuration, hpo optimize publishes the image and also launches an experiment. Use the Docker path if you only want to publish.

Open Container Images in your workspace and wait for the registry to be ready. Copy the registry host, organization registry project, and login details shown there. The registry project is an image namespace; it is not your experiment’s project ID.

The following commands contain placeholders. Replace each with your values from the dashboard.

  1. Log in using the supplied robot account:

    Terminal window
    docker login <registry-host> --username <robot-username>

    Paste the password at Docker’s prompt. Avoid placing it in a command argument or source file.

  2. Tag the image you tested locally:

    Terminal window
    docker tag <local-image>:<local-tag> <registry-host>/<registry-project>/<repository>:<tag>
  3. Push the tag:

    Terminal window
    docker push <registry-host>/<registry-project>/<repository>:<tag>
  4. Refresh Container Images and confirm the repository and tag appear. Select them when you create an experiment.

Use a distinct tag such as a source revision for each published version. Do not overwrite a tag you need for reproducing earlier results. The CLI’s build path launches with an immutable digest.

Store registry credentials in your CI secret store. For an unattended Docker login, pass the password through standard input:

Terminal window
printf '%s' "$REGISTRY_PASSWORD" | docker login "$REGISTRY_HOST" --username "$REGISTRY_USERNAME" --password-stdin

Set IMAGE_NAME to the full registry/repository path and IMAGE_TAG to a unique revision, then build and push:

Terminal window
docker buildx build --platform linux/amd64 --tag "$IMAGE_NAME:$IMAGE_TAG" --push .

The runner needs Docker and Buildx. Keep credentials out of logs, Docker layers, and build arguments. Use CLI authentication and CI if you also want CI to launch the experiment.

Your registry storage allowance depends on your plan. Review usage in Container Images before pushing large datasets. Remove only image tags you no longer need for existing or future runs.

If a push fails, confirm the registry is ready, the host and project match the dashboard, the login is current, and sufficient storage remains. A successful local build alone does not make the image available to cloud trials.

Next: launch from the dashboard or save the image reference in TOML.