In Docker Hub, we are going to use the Create drop-down menu and select Create Automated Build. After selecting it, we will be taken to a screen that will show you the accounts you have linked to either GitHub or Bitbucket:

You then need to search and select the repository from either of the locations you want to create the automated build from. This will essentially create a webhook that instructs that when a commit is done on a selected code repository, a new build will be created on Docker Hub.

Here, I selected mastering-docker ...