Share feedback
Answers are generated based on the documentation.

Set up automated builds

Warning

Docker Hub Automated Builds is a deprecated feature. It will be fully retired on April 1, 2027. See the migration guide to move to a supported CI/CD workflow.

Note

Automated builds require a Docker Pro, Team, or Business subscription.

Configure automated builds

You can configure repositories in Docker Hub so that they automatically build an image each time you push new code to your source provider. If you have automated tests configured, the new image is only pushed when the tests succeed.

  1. In Docker Hub, go to My Hub > Repositories, and select a repository to view its details.

  2. Select the Builds tab.

  3. Select either GitHub or Bitbucket to connect where the image's source code is stored.

    Note

    You may be redirected to the settings page to link the code repository service. Otherwise, if you are editing the build settings for an existing automated build, select Configure automated builds.

  4. Select the source repository to build the Docker images from.

    Note

    You might need to specify an organization or user from the source code provider. Once you select a user, source code repositories appear in the Select repository drop-down list.