Unable to pull and push images from and to the VIC private registry (Harbor)
search cancel

Unable to pull and push images from and to the VIC private registry (Harbor)

book

Article ID: 317007

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
You see an error similar to the following when trying to pull and push images from and to the VIC private registry (Harbor) from a docker client:

Get https://VIC-Appliance-FQDN/v2/: x509: certificate signed by unknown authority 

Environment

VMware vSphere Integrated Containers 1.x

Resolution

This issue can occur when the docker client does not have the Harbor certificate so it does not trust on it. In order to solve this issue you can use the the following steps:
  1. Navigate to Admiral (https://VIC-FQDN:8282) --> Administration --> Configuration --> Download Registry Root Certificate
  2. On your docker client create a folder with name of the FQDN or IP of your VIC Appliance at /etc/docker/certs.d/
  3. Place Harbor Registry Root Certificate in the folder created in Step 2