# Please explain multiple images in an executor

**URL:** <https://discuss.circleci.com/t/please-explain-multiple-images-in-an-executor/36572>\
**Category:** Build Environment\
**Tags:** nodejs, docker, php\
**Created:** [July 7, 2020, 12:20pm UTC](https://discuss.circleci.com/t/please-explain-multiple-images-in-an-executor/36572 "2020-07-07T12:20:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mike](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mike/32/24230_2.png) [@mike](https://discuss.circleci.com/u/mike)\
**Post date:** [July 8, 2020, 7:08pm UTC](https://discuss.circleci.com/t/please-explain-multiple-images-in-an-executor/36572/2 "2020-07-08T19:08:55Z")

</div>

A common use-case for multiple Docker images would be to spin up a Postgres DB container that needs to be available for certain tests. Multiple Docker images are most useful when you need to connect to a resource over the network.

If you are looking to install some CSS/JS assets with node on a PHP app, your best bet would probably be to make use of the `-node` convenience images and something like `circleci/php:7.4-cli-node`

[https://circleci.com/docs/2.0/circleci-images/#language-image-variants](https://circleci.com/docs/2.0/circleci-images/#language-image-variants)

Here’s a list of all the image variants:

[https://circleci.com/docs/2.0/docker-image-tags.json](https://circleci.com/docs/2.0/docker-image-tags.json)

That will give you PHP with a node executable available to compile your assets. If you need a specific version of node, its probably simplest to make use of the node Orb to install a different version as opposed to using the `-node` image variant

[https://circleci.com/orbs/registry/orb/circleci/node](https://circleci.com/orbs/registry/orb/circleci/node)

There is an old blog post that talks about how to access resources in a secondary container and speaks of the hoops you would need to jump through to do that

> **[Setting up Tricky Containers in CircleCI 2.0 Multi-Image](https://circleci.com/blog/setting-up-tricky-containers-in-circle-2-0-multi-image/)**
>
> Note from the publisher: You have managed to find some of our old content and it may be outdated and/or incorrect. Try searching in our docs or on the blog for current information.Some Docker containers are perfect for CircleCI 2.0. Postgresql, for...

So to sum things up, multiple Docker containers are most useful when you want to access a network resource like a database for your builds. If you need access to something additional, like node, you usually want to simply install it during the build.

---

_[View the full topic](https://discuss.circleci.com/t/please-explain-multiple-images-in-an-executor/36572)._
