To work with container images in a registry using Docker, you add the registry certificate to the Docker client. The certificate is used to authenticate Docker during registry login.
Configure your Docker client to interact with a container registry, such as the Harbor Registry or Docker Hub. This example assumes you are using the Harbor Supervisor Service.
Prerequisites
This task assumes that you are using a Linux host (Ubuntu) on which the Docker daemon is installed. To install the Docker Engine (daemon) on an Ubuntu host, see https://docs.docker.com/engine/install/ubuntu/.
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.