Link Docker Hub

JFrog Connect enables you to link any Docker Hub account to deploy updates directly from your container registry to the edge devices.

When you use the Deploy Containers action block in a software update, you can configure the block to pull container images directly from your image registry in Docker Hub. All you need to do is link your Docker Hub account to your JFrog Connect account. The procedures on this page describe how to connect the account.

Prerequisites

  • A JFrog Connect account.

  • One or more Docker Hub accounts with a container image.

Get Access Token

Before you can configure the link with Docker Hub, you need to get an access token.

  1. Log in to your Docker Hub account at https://hub.docker.com/.

  2. Click your username in the top right corner.

  3. Click Account Settings, and go to the Security section.

  4. Under Access Tokens, click New Access Token.

  5. Enter a description of your access token, e.g., JFrog Connect, and click Create.

  6. Copy the access token to your clipboard.

Example of token: a0b35e8e-8ebb-49d0-8297-4fa407887e22.

Go to Action Block Configuration

  1. Go to Updates in the left sidebar and click Create Update Flow.

  1. Drag the Deploy Containers action block and drop it in the workflow.

  1. Click the Deploy Containers action block in the flow, and for Registry Account, click Other Registry.

Add Account

In the action block configuration, click Add Account, and complete the requested information:

  • Registry Provider: Choose DockerHub from the list.

  • Account Display Name: Enter any name you want to display that will identify this account. The display name will appear in the list of Registry Accounts whenever you choose Other Account in the action block configuration.

  • Docker Hub Username: Enter the username that you use to log in to Docker Hub.

  • Docker Hub Access Token: Paste in the access token that you created previously

Save the account information. After saving, you can either continue with your action block configuration or simply cancel the action block without saving. (You can also link an additional Docker Hub account.)

The next time you enter a Deploy Containers action block configuration, this Docker Hub account and any additional accounts you added will be visible in the dropdown list of Other Registry accounts.

Docker Hub Organization Account

To enable Connect support of a Docker Hub Organization Account, reach out to JFrog Connect support.

What’s Next?

Learn how to use the Deploy Containers action block in a workflow to update containers in your edge devices.

Last updated