I would make build triggers that are based on specific Dockerfiles changing in the repo. Many CI systems can watch a specific file being changed as the task trigger.
So if container A is a dependency for container B, then make container B's task trigger be whenever the Dockerfile for container A changes.