# Multicontainer Update

**URL:** <https://forums.balena.io/t/multicontainer-update/363433>\
**Category:** Product support\
**Created:** [September 27, 2022, 7:15pm UTC](https://forums.balena.io/t/multicontainer-update/363433 "2022-09-27T19:15:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattyg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mattyg/32/7427_2.png) [@mattyg](https://forums.balena.io/u/mattyg)\
**Post date:** [September 27, 2022, 7:15pm UTC](https://forums.balena.io/t/multicontainer-update/363433/1 "2022-09-27T19:15:38Z")

</div>

We just switched over to multicontainer builds (amazing work on this all btw), and we have generally positive feelings.

There is one slightly annoying thing that I wanted to report, specifically for us the two running containers are functionally identical, but have different entry points within the application. This works great in practice, but when it is time to update, it downloads two separate images for the update, which is a little bit funny to think about.

Is there any way to work around this? In practice it takes us 2x the time to update now because we have to wait for a duplicitave download…

---

<div class="post-metadata">

**Author:** ![nitish](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@nitish](https://forums.balena.io/u/nitish)\
**Post date:** [September 29, 2022, 1:35pm UTC](https://forums.balena.io/t/multicontainer-update/363433/3 "2022-09-29T13:35:14Z")

</div>

Hi @mattyg, Do these two container differ in their entry point script and other layers are same? If it is such a case you can extract the `command` out to use the same image. Example below:

```auto
version: '2'
services:
  web:
      build: ./docker # common Dockerfile
      image: IMAGENAME
      ports:
          - "8090:8090"
      command: ["serve"]

  worker:
      build: ./docker # common Dockerfile
      image: IMAGENAME # reuse image
      ports:
          - "8091:8090"
      command: ["work"]

```

---

<div class="post-metadata">

**Author:** ![mattyg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mattyg/32/7427_2.png) [@mattyg](https://forums.balena.io/u/mattyg)\
**Post date:** [September 30, 2022, 6:24pm UTC](https://forums.balena.io/t/multicontainer-update/363433/5 "2022-09-30T18:24:23Z")

</div>

Ah ha. I wasn’t specifying the image name. I will give that a go, then report back.

---

<div class="post-metadata">

**Author:** ![james-cws](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@james-cws](https://forums.balena.io/u/james-cws)\
**Post date:** [September 30, 2022, 6:31pm UTC](https://forums.balena.io/t/multicontainer-update/363433/7 "2022-09-30T18:31:41Z")

</div>

Sounds good! Looking forward to hearing if this resolves the problem 👍
