Docker Hub integration

What is Docker Hub?

Docker Hub is a cloud service provided by Docker that allows users to push and pull container images whenever they need to.

It serves as a centralized registry for Docker containers, enabling developers to access a wide range of pre-built images that can be used as a base for their own applications.

Integrating the service with Buddy lets you automate basically every single Docker task. You can create a pipeline that will, for example, build your Docker image (either single or multi-arch), run and test it for errors, and push the image to a container registry.

On top of that, you can use the Docker CLI action in Buddy to handle workflows that require docker-compose and Docker in Docker.

Image loading...Pipeline example for Docker Hub integration

Setting up Docker Hub integration

To integrate with Docker Hub:

  1. Enter the Integrations tab in Buddy and click New integration.

  2. Look up and click Docker Hub (it can be found under the Others category):

Image loading...Docker Hub integration selection

  1. The configuration window will show up:

Image loading...Docker Hub integration configuration

Here you have to provide:

Hint
You can adjust the privacy settings of your integration (i.e. who can use it and where) in the Sharing tab.
  1. When ready, click Add a new integration to finish configuration.

Obtaining Docker Hub access token

  1. Log in to your Docker Hub account and go to the Security tab:

Image loading...Security tab in Docker Hub

  1. Click New Access Token.

  2. When a box appears, provide the access token description and click Generate:

Image loading...Generating access token

  1. Copy the created token and paste it in the Access Token field of the configuration window.

Once the Docker Hub integration configuration is finished, you can create a pipeline in Buddy and discover all Docker actions it offers.

Hint

📚 Learn more about Docker Build Image action features, integrations and alternatives.

Last modified on Sep 23, 2024