'How to find the status of automated builds in Docker Hub

How to find the status of automated builds which get triggered either manually or via the Trigger url for a Docker Hub project.

https://hub.docker.com/repository/docker/company/webapp/builds
  1. I would like to understand if its running and if its running the current status (i.e still running or build completed)
  2. List of past builds
  3. Status of all builds (time initiated, completed, build status)


Solution 1:[1]

Try with this:

curl https://hub.docker.com/api/build/v1/source/?image={namespace}/{repo} | jq '.objects[0].state'

Add bearer token in your request if it is a private repo

-H "Authorization: Bearer {Token}"

Solution 2:[2]

docker ps --no-trunc 

will display the list of full containers and builds and details of the other running containers.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alex Lee
Solution 2 Venkateshreddy Pala