Codefresh has native support for interacting with Docker Hub registries, to push, pull, and deploy images.
For information on adding a Docker Hub integration in Codefresh, see Container registry integrations.
Before you configure settings in Codefresh to integrate Docker Hub registry, do the following:
- Create an account or sign in to your account at Docker Hub
- (Optional) Enable 2FA (Two-Factor Authentication)
- Create a personal account token
Docker Hub integration settings in Codefresh
The table describes the arguments required to integrate Docker Hub to Codefresh.
|Integration name||A friendly name for the integration. This is the name you will reference in the third-party CI platform/tool.|
|All Runtimes/Selected Runtimes|| The runtimes in the account with which to share the integration resource.
The integration resource is created in the Git repository with the shared configuration, within resources. The exact location depends on whether the integration is shared with all or specific runtimes:
|Username||The Docker Hub username.|
|Password||If you enabled two-factor authentication, enter the personal access token for your Docker Hub account for Codefresh to push images. Personal access tokens are more secure and can be revoked when needed. Codefresh can then push your images. If two-factor authentication is not enabled, enter the password of your Docker Hub account (not recommended).|
|Test connection||Click to verify that you can connect to the specified instance before you commit changes.|
For how-to instructions, see Configure container registry integrations in Codefresh and Edit/delete container registry integrations in Codefresh.