For the complete documentation index, see llms.txt. This page is also available as Markdown.

Docker Hub

Connect to Docker Hub to browse, create, and manage container image repositories and tags.

Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

Connector
Authentication

Docker Hub (Personal Access Token)

Credentials

Docker Hub (Organization Access Token)

Credentials

Docker Hub (Personal Access Token)

Connect to Docker Hub with your Docker ID and a personal access token to browse and manage repositories and tags.

Set up in Docker Hub

  1. Prepare the Docker Hub account or service that the workflow will access. Grant access to the required resources and operations.

  2. Personal Access Token: Create one at Docker Hub Account Settings > Personal access tokens. Read-only covers every action except Create Repository, which needs Read & Write.

Set up in StackAI

  1. Open Settings → Connections, add a connection, and select Docker Hub (Personal Access Token).

  2. Enter the credentials and connection details in the fields below.

  3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

Connection fields

StackAI field
Required
What to enter

Docker ID

Yes

Your Docker Hub username (Docker ID).

Personal Access Token

Yes

Create one at Docker Hub Account Settings > Personal access tokens. Read-only covers every action except Create Repository, which needs Read & Write. Provider instructions.

Docker Hub (Organization Access Token)

Connect to Docker Hub with an organization access token for automation. Without the repository-list scope it only sees public repositories.

Set up in Docker Hub

  1. Prepare the Docker Hub account or service that the workflow will access. Grant access to the required resources and operations.

  2. Organization Access Token: Create one in the organization's Settings > Access Tokens. One without the repository-list scope silently sees only public repositories when listing.

Set up in StackAI

  1. Open Settings → Connections, add a connection, and select Docker Hub (Organization Access Token).

  2. Enter the credentials and connection details in the fields below.

  3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

Connection fields

StackAI field
Required
What to enter

Organization

Yes

Your Docker Hub organization name.

Organization Access Token

Yes

Create one in the organization's Settings > Access Tokens. One without the repository-list scope silently sees only public repositories when listing. Provider instructions.

Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

Use an action

  1. Add the required Docker Hub action to the workflow.

  2. Select a connection when the action requests one.

  3. Complete the required fields. Use the reference picker when a value comes from another workflow step.

  4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

Actions

List Repositories

List the image repositories in a Docker Hub organization or user account.

Inputs

Field
Type
Required
Description

Namespace

string

Yes

The Docker Hub organization name or username that owns the repositories.

Name contains

string

No

Only show repositories whose name contains this text.

Sort by

select (string)

No

How to sort the repositories. Available values: Name (A-Z), Name (Z-A), Last updated (oldest first), Last updated (newest first), Pull count (lowest first), Pull count (highest first).

Max results

integer

No

The most repositories to return. Minimum: 1. Maximum: 100. Default: 25.

Page

integer

No

Continue from a page returned by an earlier run. Minimum: 1.

Outputs

Field
Type
Description

Repositories

object_array

The repositories found.

Total

integer

How many repositories match in total.

Next page

integer

The page to request next, if more results exist.

Get Repository

Get the details of one Docker Hub repository.

Inputs

Field
Type
Required
Description

Namespace

string

Yes

The organization name or username that owns the repository.

Repository

select (string)

Yes

The repository to look up. Options load from the selected connection.

Outputs

Field
Type
Description

Repository

object

The repository details.

Create Repository

Create a new public or private image repository in Docker Hub.

Inputs

Field
Type
Required
Description

Namespace

string

Yes

The organization name or username the repository will belong to.

Repository name

string

Yes

The new repository's name, in lowercase.

Private

boolean

No

Only people with access can pull a private repository. Default: false.

Short description

string

No

A one-line summary shown on Docker Hub (up to 100 characters).

Overview

textarea

No

The longer overview shown on the repository page (Markdown).

Outputs

Field
Type
Description

Repository

object

The created repository.

List Repository Tags

List the image tags (versions) in a Docker Hub repository.

Inputs

Field
Type
Required
Description

Namespace

string

Yes

The organization name or username that owns the repository.

Repository

select (string)

Yes

The repository whose tags to list. Options load from the selected connection.

Max results

integer

No

The most tags to return. Minimum: 1. Maximum: 100. Default: 25.

Page

integer

No

Continue from a page returned by an earlier run. Minimum: 1.

Outputs

Field
Type
Description

Tags

object_array

The tags found.

Total

integer

How many tags the repository has.

Next page

integer

The page to request next, if more results exist.

Get Repository Tag

Get the details of one image tag, such as its digest, size and when it was last pushed.

Inputs

Field
Type
Required
Description

Namespace

string

Yes

The organization name or username that owns the repository.

Repository

select (string)

Yes

The repository that holds the tag. Options load from the selected connection.

Tag

select (string)

Yes

The tag to look up. Options load from the selected connection.

Outputs

Field
Type
Description

Tag

object

The tag details.

Triggers

A trigger starts a workflow when its configured event occurs. Configure the event and filters before enabling the trigger.

Repository Updated

Starts a workflow when a repository is created in a Docker Hub namespace or an image is pushed to one.

Pick the Docker Hub namespace (organization or username) to watch. This fires when a repository is created or an image is pushed to it. Optionally add a name filter to only watch repositories whose name contains given text. With an organization access token that lacks the repository-list scope, Docker Hub hides private repositories, so this never fires for them.

Required permissions: repo:read.

Configuration

Field
Type
Required
Description

Namespace

string

Yes

The organization name or username to watch.

Name contains

string

No

Only watch repositories whose name contains this text.

Event inputs

Field
Type
Required
Description

Repository

string

Yes

The repository that changed. Default: .

Namespace

string

Yes

The owning namespace. Default: .

Updated at

string

Yes

When the repository changed. Default: 0001-01-01 00:00:00+00:00.

Private

boolean

Yes

Whether the repository is private. Default: false.

Pulls

integer

No

Total pulls.

Outputs

Field
Type
Description

Repository

string

The repository that changed.

Namespace

string

The owning namespace.

Updated at

datetime

When the repository changed.

Private

boolean

Whether the repository is private.

Pulls

integer

Total pulls.

Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.

Last updated

Was this helpful?