# How to add multiple containers in mender layer

**URL:** https://hub.mender.io/t/how-to-add-multiple-containers-in-mender-layer/6050
**Category:** Yocto Project
**Tags:** yocto, nxp, docker, kirkstone
**Created:** [July 31, 2023, 11:56am UTC](https://hub.mender.io/t/how-to-add-multiple-containers-in-mender-layer/6050 "2023-07-31T11:56:51Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [August 4, 2023, 1:39pm UTC](https://hub.mender.io/t/how-to-add-multiple-containers-in-mender-layer/6050/6 "2023-08-04T13:39:12Z")

</div>

Hi @Aysha,

without exactly knowing what you put into the Artifact, the only guess I can take is based on this line in the log

```auto
2023-08-04 09:54:22 +0000 UTC error: transient error: Reboot to the new update failed. Expected “upgrade_available” flag to be true but it was false. Either the switch to the new partition was unsuccessful, or the bootloader rolled back

```

So it seems that whatever is in that `container.tar.gz` that you tried to install is not properly handled. Even more guessing: it is not a full root filesystem, as you are talking about containers.

```auto
mender-artifact write rootfs-image

```

is meant for full system deployments. To create an Artifact for the `docker` Update Module, use the matching [generator script](https://github.com/mendersoftware/mender/blob/master/support/modules-artifact-gen/docker-artifact-gen), as mentioned in the already linked [tutorial](https://hub.mender.io/t/docker/324).

Greetz,  
Josef

---

_[View the full topic](https://hub.mender.io/t/how-to-add-multiple-containers-in-mender-layer/6050)._
