How to use VMware Admiral Container Service with Harbor Registry

Ok, so you figured out how to get Admiral and Harbor up and running and now you want to use them both together so you don’t have to go out to Docker Hub anymore right? Well you came to the right place. In this guide I will show you how to configure Admiral to use the Harbor registry.


  • VMware Admiral installed and at least one container host configured See my guide here
  • VMware Harbor Registry installed with at least one known good image available see my guide here
  • A quiet place where you will not be interrupted see my guide here

Open the Admiral Interface

  1. Click Templates
  2. Click Manage Registries

Now click + add to add a Registry

Enter the url and name for your harbor registry

  1. Enter host name and port
  2. Enter a display name
  3. Click verify

Now click the Check box to add it

Now, if you were using a secure registry you would be all set, if you setup Harbor as insecure you will also need to modify your Container hosts Docker Options. I am using Photon OS 1.0 in my environment.

Open the docker options file using the vi editor on each of your Docker hosts that are part of Admiral

vi /etc/default/docker

Add the following to the options

  1. Click i on the keyboard and add the addition text to point to your Harbor registry
  2. Pres ESC then hold shift and press ZZ on the keyboard to save the file

NOTE: You need the :80 on the URL or the deployments from Admiral will fail.

DOCKER_OPTS="-H tcp:// -H unix:///var/run/docker.sock --insecure-registry reg.corp.local:80"

Restart the docker service with the following command

Now go back to admiral and search for and deploy a container from the Harbor Registry

  1. Search for an image in Harbor
  2. Provision it

See your new container running

Enjoy the speed and security using Admiral and Harbor and Photon OS together!
Remember sharing is caring!

One Reply to “How to use VMware Admiral Container Service with Harbor Registry”

  1. Pingback: Getting started with VMware Admiral Container Service on Photon OS –

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.