To work with container images in the embedded Harbor Registry using Docker, you must add the registry certificate to your Docker client. The certificate is used to authenticate to Docker during login.
Configure your Docker client to interact with the embedded Harbor Registry. This task is required in preparation for using the Docker Credential Helper that vSphere provides to connect and interact with the embedded Harbor Registry.
Prerequisites
This task assumes that the embedded Harbor Registry is enabled and that you can log in:
- Enable the Embedded Harbor Registry on the Supervisor Cluster
- Log In to the Embedded Harbor Registry Console
In addition, the instructions assume that you are using a Linux host (Ubuntu) on which the Docker daemon is installed. To verify that Docker is installed and that you can pull images from the Docker hub, run the following command:
docker run hello-world
Expected result:
Hello from Docker! This message shows that your installation appears to be working correctly.
Note: These instructions are verified using Ubuntu 20.04 and Docker 19.03.
Procedure
What to do next
As indicated by the message, for security purposes, download and install the vSphere Docker Credential Helper. See Install the vSphere Docker Credential Helper and Connect to the Registry.