6. Connect Registry

You need to have a Docker registry in order to store your application container. Codefresh will push your application to the registry after it is built. Then the EKS cluster will pull this container in order to launch the application.

By using the public DockerHub registry, we don’t need to setup any credentials or authentication information. In a real production application you might use a private container registry such as Amazon ECR.

Create an Dockerhub account

If you don’t have Dockerhub account yet:

Connect the container registry to Codefresh

Registry integration

  • Click Test connection button on the lower right to verify your settings. You should get a success message at the top of the screen

  • Finally click the Save button to apply your changes.

The registry name we used (dockerhub in our case) is important because we will reference it in the following sections inside our pipelines. If you choose another name for your integration, remember to note it down.