You can push images from Docker to a project on the embedded Harbor Registry. Projects in the embedded Harbor Registry correspond to vSphere namespaces on a Supervisor Cluster.
Prerequisites
It is assumed that the following tasks are completed:
In addition, obtain your user account for which you have write permissions on the namespace that corresponds to the project on Harbor Registry where you want to push images.
Lastly, you need a local image that you can push to the registry. The following command pulls the hello-world image from Docker Hub. You will need an account there to pull the image.
docker run hello-world
Expected result:
Hello from Docker! This message shows that your installation appears to be working correctly.
Verify the image using the
docker images
command.
docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest bf756fb1ae65 10 months ago 13.3kB
Procedure
Example
docker tag busybox:latest <container-registry-IP>/<namespace-name>/busybox:latest docker push <container-registry-IP>/busybox/busybox:latest
What to do next
Deploy vSphere Pods by using images from the Harbor registry. See Deploy an Application to a vSphere Pod Using the Embedded Harbor Registry.