# How many “containers” are used during a build with multiple docker images?

**URL:** <https://discuss.circleci.com/t/how-many-containers-are-used-during-a-build-with-multiple-docker-images/28742>\
**Category:** Build Environment\
**Created:** [March 4, 2019, 12:39pm UTC](https://discuss.circleci.com/t/how-many-containers-are-used-during-a-build-with-multiple-docker-images/28742 "2019-03-04T12:39:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarshwah](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jarshwah/32/21567_2.png) [@jarshwah](https://discuss.circleci.com/u/jarshwah)\
**Post date:** [March 4, 2019, 12:39pm UTC](https://discuss.circleci.com/t/how-many-containers-are-used-during-a-build-with-multiple-docker-images/28742/1 "2019-03-04T12:39:32Z")

</div>

The docs don’t seem to spell this out, but if I have a job that requires a database, Redis, and elastic search, and I run these using docker, would that consume 1 container or 4 with regards to pricing?

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [March 4, 2019, 1:25pm UTC](https://discuss.circleci.com/t/how-many-containers-are-used-during-a-build-with-multiple-docker-images/28742/2 "2019-03-04T13:25:07Z")

</div>

Just one. The container limit applies to (parallelisable) build containers, not to any secondary Docker containers, and not to ones you spin up with Docker manually.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [March 14, 2019, 1:26pm UTC](https://discuss.circleci.com/t/how-many-containers-are-used-during-a-build-with-multiple-docker-images/28742/3 "2019-03-14T13:26:15Z")

</div>

Closed on March 14, 2019, 1:26pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
