I see in the Docker Remote API Docs that filter can be used to filter on status but I\'m unsure how to form the request:
https://docs.docker.com/reference/api/docker
By my reading of the docs, it should be:
GET /containers/json?filters={"status":["exited"]}
Some of that might need to be URL-encoded, though.