For the complete documentation index, see llms.txt. This page is also available as Markdown.

Harness CI images

When you run a Harness CI build, the pipeline pulls the Harness CI images it needs from Docker Hub.

When a Harness CI pipeline runs, an initialize step runs automatically before other stage steps. It prepares the environment for your steps.

The initialize step prepares build infrastructure and pulls required Harness images. It uses Docker Hub by default. You can also use the Harness project on GAR or the Harness ECR public gallery. Go to Connect to the Harness container registry to configure your account and pipeline registry settings.

What you will learn from this topic

By the end of this topic, you will be able to:

Harness CI images list

You can find Harness CI images on Docker Hub, the Harness project on GAR, the Harness ECR public gallery, or the Harness EU-GAR registry.

The following Harness CI images are available on Docker Hub, GAR, ECR, and EU-GAR. Build image tags change often.

  • harness/ci-addon: Used to execute steps on containers in Kubernetes pods.

  • harness/ci-lite-engine: Used to orchestrate execution of steps on Kubernetes pods.

  • harness/drone-git: Used to clone git repos.

  • harness/harness-cache-server: Used to cache dependencies and build artifacts.

Harness CI uses Drone plugin images to run some operations. The following plugin images are available across all supported registries:

  • plugins/kaniko: Used to build Docker images with kaniko and push to Docker registry for Kubernetes cluster build infrastructures.

  • plugins/kaniko-ecr: Used to build Docker images with kaniko and push to AWS ECR for Kubernetes cluster build infrastructures.

  • plugins/kaniko-acr: Used to build Docker images with kaniko and push to Azure ACR for Kubernetes cluster build infrastructures.

  • plugins/kaniko-gar: Used to build Docker images with kaniko and push to Google Artifact Registry for Kubernetes cluster build infrastructures.

  • plugins/docker: Used to build and push Docker images for Harness Cloud build infrastructures.

  • plugins/ecr: Used to build and push Docker images to AWS ECR for Harness Cloud build infrastructures.

  • plugins/acr: Used to build and push Docker images to Azure ACR for Harness Cloud build infrastructures.

  • plugins/gar: Used to build and push Docker images to Google Artifact Registry for Harness Cloud build infrastructures.

  • plugins/buildx: Used to build and push Docker images with Buildx.

  • plugins/buildx-ecr: Used to build and push Docker images to AWS ECR with Buildx.

  • plugins/buildx-acr: Used to build and push Docker images to Azure ACR with Buildx.

  • plugins/buildx-gar: Used to build and push Docker images to Google Artifact Registry with Buildx.

  • plugins/cache: Used to cache files to/from S3/GCS that help to expedite builds.

  • plugins/s3: Used to upload files to AWS S3 buckets.

  • plugins/gcs: Used to upload files to GCP GCS service.

  • plugins/artifactory: Used to upload artifacts to JFrog Artifactory.

  • plugins/download-artifactory: Used to download artifacts from JFrog Artifactory.

  • plugins/test-analysis: Used for test intelligence and test report parsing.

  • plugins/artifact-metadata-publisher: Used to publish artifact metadata.

  • plugins/aws-oidc: Used for AWS OIDC-based authentication.

  • plugins/gcp-oidc: Used for GCP OIDC-based authentication.

  • plugins/buildah-docker: Used to build Docker images with Buildah.

  • plugins/drone-liquibase: Used for database DevOps with Liquibase.

  • plugins/image-migration: Used to migrate Docker images between registries.

  • plugins/email: Used to send email notifications.

  • plugins/githubaction: Used to run GitHub Actions in Harness CI.

If an image you need is not listed here or is unavailable on your expected registry, contact Harness Support.

Harness CI image pulls

By default, when a CI pipeline runs, the Harness Delegate uses a Docker connector to make an anonymous outbound connection to pull the Harness CI images from the public container registry where they are stored.

Do not pull images anonymously

If you do not want the Harness Delegate to pull images anonymously, you can use credentialed access instead. Go to Connect to the Harness container image registry to configure credentialed access.

Do not pull images from a public registry

Harness CI images are stored in a public container registry. If you do not want to pull the images directly from the public registry, you can pull Harness images from your own private registry. Go to Connect to the Harness container image registry to configure a private registry.

Docker Hub rate limiting

By default, Harness uses anonymous Docker access to pull Harness images. If you experience rate limiting issues when pulling images, try one of these solutions:

  • Use credentialed access, rather than anonymous access, to pull Harness CI images.

  • Configure the default Docker connector to pull images from GAR or ECR instead of Docker Hub.

  • Pull Harness images from your own private registry.

Go to Connect to the Harness container image registry to configure these options.

Supported registry images

Only the images listed in the Harness CI images list are supported across Docker Hub, GAR, ECR, and EU-GAR. If an image you need is unavailable on your expected registry, contact Harness Support.

Harness CI image updates

Every week, based on changes, CI images are updated and listed on the CI release notes page. We recommend maintaining a one-month window to run security scans or other tests on new CI build images before deploying them.

Harness updates harness/ci-* images, such as harness/ci-addon and harness/ci-lite-engine, according to the following release process:

  • Harness publishes updates for all CI images weekly based on changes.

  • Version numbers follow the x.y.z format, where x represents the major release number, y represents the minor release number, and z represents a hotfix or patch release number.

  • You can choose to deploy the latest containers immediately upon release or download and scan them before deployment.

  • If issues are found, patches will be applied to the latest version.

Harness plugin images for SMP are updated as needed. All Harness image updates are backward-compatible. When you first deploy CI, Harness scans all plugin images you plan to use and addresses any vulnerabilities. After your initial deployment, Harness publishes updates to address new vulnerabilities based on our Service Level Agreement with your organization.

Specify the Harness CI images used in your pipelines

You can use the Harness CI execution-config API to specify or update the Harness CI images used in your infrastructure by specifying image tags.

API key authentication is required. Go to Manage API keys to create an API key. Go to the Harness API documentation to configure authentication.

  1. Send a get-default-config request to get a list of the latest Harness CI build images and tags. You can use the infra parameter to get k8 images or VM images.

    The response payload shows the latest supported images and their tags, for example:

  2. Send a get-customer-config request to get the build images that your CI pipelines currently use. When overridesOnly is true, which is the default value, this endpoint returns the non-default images that your pipeline uses.

    If the response contains null, your pipeline is using all default images, for example:

  3. Send an update-config (POST) request with a list of the images you want to update and the new tags to apply.

  4. Send a reset-config (POST) request with a list of images to reset one or more images to their defaults.

Deprecation notice: app.harness Docker registry

Harness images are available on Docker Hub, the Harness project on GAR, and the Harness ECR public gallery. In a continuation of this effort, and to improve stability when pulling Harness-required images, Harness deprecated the Harness-hosted app.harness Docker registry effective 15 February 2024. Go to Connect to the Harness container image registry to review the deprecation details.

Windows rootless

Windows rootless feature flag

The feature flag CI_ADDON_LE_WINDOWS_ROOTLESS downloads rootless lite-engine, ci-addon, and drone-git images for Windows by default. Contact Harness Support to enable this feature.

To use Windows images with a rootless operation, download the appropriate images. Use the following versions or later:

  • harness/ci-addon:rootless-1.16.92

  • harness/ci-lite-engine:rootless-1.16.92

  • harness/drone-git:1.6.9-rootless

Troubleshoot Harness CI images

List tags available for an image in the Harness image registry

To list all available tags for an image in app.harness.io/registry, call the following endpoint and replace IMAGE_NAME with the name of the image you want to query.

Resolve ErrImagePull errors
  • Error messages: ErrImagePull or some variation of the following, which may have a different image name, tag, or registry: Failed to pull image "artifactory.domain.com/harness/ci-addon:1.16.22": rpc error: code = Unknown desc = Error response from daemon: unknown: Not Found.

  • Causes:

    • Harness could not pull an image that is needed to run the pipeline.

    • ErrImagePull can be caused by networking issues or if the specified image does not exist in the specified repository.

    • Failed to pull image - Not Found means that a Harness-specific image or tag, in this case ci-addon:1.16.22, is not present in the specified artifact repository, and you are using the account.harnessImage connector to pull Harness images. You can use this connector to pull from your own registry or to pull images from any Docker registry, but it is also used to pull Harness-required CI images. Modifying this connector can cause it to fail to pull the necessary Harness CI images.

  • Solutions:

    • If you modified the built-in Harness Docker connector, check the connector's configuration to make sure it uses one of the compatible methods for pull Harness-required images, as described in Connect to the Harness container image registry.

    • If you are trying to pull images from your own registry, check your configuration for pulling Harness images from a private registry. You might need to use a different connecter than the built-in Harness Docker connector.

    • If you modified tags for some images, check that your configuration uses valid tags that are present in the repository from which Harness is attempting to pull the tags.

    • If you believe the issue is due to networking issues, try again later if you think the issue is transient, or check your connector or network configuration to make sure Harness is able to connect to the given registry.

Understand access to internal images

By default, Harness uses anonymous access to pull Harness images.

If you have security concerns about using anonymous access or pulling Harness-specific images from a public repo, you can change how your builds connect to the Harness container image registry.

Next steps

Last updated

Was this helpful?