Can containers be siloed for different projects?

I have 6 containers and 3 projects running.
Project A uses 3 containers.
Say 2 builds of project A are running, they will be using all 6 containers.

Is there a way to say only ever use 3, thus leaving the other 3 containers free to run other projects?