Add Docker Registry Artifact Servers

Updated 2 weeks ago by Chakravarthy Tenneti

Connect your Docker Registry artifact servers with Harness.

In this topic:

Before You Begin

Visual Summary

Here's an example of the Docker Registry Artifact Source addition.

Review: Docker Registry Permissions

Make sure the connected user account has the following permissions.

  • Read permission for all repositories.

The user needs access and permissions to the following:

  • List images and tags
  • Pull images

See Docker Permissions.

If you are using anonymous access to a Docker registry for a Kubernetes deployment, then imagePullSecrets should be removed from the container specification. This is standard Kubernetes behavior and not related to Harness specifically.

Step 1: Select Docker Registry Artifact Server

To connect to an artifact server, do the following:

  1. Click Setup.
  2. Click Connectors.
  3. Click Artifact Servers.
  4. Click Add Artifact Server.
  5. In Type, select Docker Registry.

Step 2: Display Name

Enter a name for the Docker Registry Server. This is the name you will use to identify this connection when adding an Artifact Source to a Harness Service.

Step 3: Docker Registry URL

Enter the URL of the Docker Registry. The Docker Registry URL for Docker Hub is

Step 4: Enter the Credentials

Optionally, enter the credentials. The Docker Registry Artifact Server does not require a username and password because you might use it to connect to a public repo.

For secrets and other sensitive settings, select or create a new Harness Encrypted Text secret.

Usage Scope is determined by the secret you selected.

Step 5: Delegate Selector

Select the Delegate Selector(s) of the Delegate(s) you want this Connector to use.

When Harness needs to run a task, it makes a connection to a resource via its Delegates. Harness selects the best Delegate according to its history or it round robins between Delegates. See How Does Harness Manager Pick Delegates?.

In a few cases, you might want Harness to select specific Delegates. In these cases, you can use Delegate Selectors.

See Select Delegates with Selectors.

How did we do?