# Install docker-compose on Yocto, bbappend not being picked up

**URL:** https://hub.mender.io/t/install-docker-compose-on-yocto-bbappend-not-being-picked-up/6739
**Category:** General Discussions
**Tags:** yocto, docker
**Created:** [April 15, 2024, 8:34pm UTC](https://hub.mender.io/t/install-docker-compose-on-yocto-bbappend-not-being-picked-up/6739 "2024-04-15T20:34:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hackenstein](https://avatars.discourse-cdn.com/v4/letter/h/c37758/32.png) [@hackenstein](https://hub.mender.io/u/hackenstein)
#### Post date: [April 15, 2024, 8:34pm UTC](https://hub.mender.io/t/install-docker-compose-on-yocto-bbappend-not-being-picked-up/6739/1 "2024-04-15T20:34:07Z")

</div>

Hi TheYoctoJester,  
I’m trying to add docker and docker-compose to my image following the above referenced tutorial. I’m able to run docker --version but it seems that docker-compose is not being installed. My bbappend file looks like this:  
FILESEXTRAPATHS:prepend := “/:”  
SRC\_URI += “file://netfilter.cfg”

Do I need to populate THISDIR and PN before running bitbake?  
Many Thanks!,  
Hackenstein

---

<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: [April 16, 2024, 7:43pm UTC](https://hub.mender.io/t/install-docker-compose-on-yocto-bbappend-not-being-picked-up/6739/2 "2024-04-16T19:43:58Z")

</div>

Hi @hackenstein,

The example for adding the `netfilter.cfg` config fragment is [meta-mender-community/kas/demos/meta-mender-demo-app-updates/dynamic-layers/raspberrypi/recipes-kernel/linux-raspberrypi/linux-raspberrypi\_6.1.bbappend at master · mendersoftware/meta-mender-community · GitHub](https://github.com/mendersoftware/meta-mender-community/blob/master/kas/demos/meta-mender-demo-app-updates/dynamic-layers/raspberrypi/recipes-kernel/linux-raspberrypi/linux-raspberrypi_6.1.bbappend).

`THISDIR` and `PN` are automatically populated, but the `.bbappend` that you gave would expect `netfilter.cfg` in `/`, which almost certainly is wrong. Does the file even get parsed? Check this with `bitbake-layers show-appends`.

On which Yocto release are you? Note that `docker-compose` is not available until `mickledore`.

Greets,  
Josef

---

<div class="post-metadata">

### Author: ![hackenstein](https://avatars.discourse-cdn.com/v4/letter/h/c37758/32.png) [@hackenstein](https://hub.mender.io/u/hackenstein)
#### Post date: [April 16, 2024, 8:15pm UTC](https://hub.mender.io/t/install-docker-compose-on-yocto-bbappend-not-being-picked-up/6739/3 "2024-04-16T20:15:17Z")

</div>

Thanks Josef, it appears that it is working after all. I was running docker-compose --version instead of docker compose --version. Not that docker compose --version returns a version but it at least recognizes the command and returns a usage menu.

As far as the netfilter.cfg in /, I pasted the code to create the .bbappend file into the command prompt and executed it and it appears the process replaced the  
FILESEXTRAPATHS:prepend := “${THISDIR}/${PN}:”  
with  
FILESEXTRAPATHS:prepend := “/:”  
I’ve since gone into the bbappend file and changed it back and rerun bitbake but it’s not picking up any changes:  
NOTE: Tasks Summary: Attempted 5505 tasks of which 5505 didn’t need to be rerun and all succeeded.  
So no new image file is being generated. Any insight will be greatly appreciated.

Thanks

---

<div class="post-metadata">

### Author: ![hackenstein](https://avatars.discourse-cdn.com/v4/letter/h/c37758/32.png) [@hackenstein](https://hub.mender.io/u/hackenstein)
#### Post date: [April 16, 2024, 8:19pm UTC](https://hub.mender.io/t/install-docker-compose-on-yocto-bbappend-not-being-picked-up/6739/4 "2024-04-16T20:19:18Z")

</div>

PS I’m on nanbield

---

<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: [April 17, 2024, 4:05pm UTC](https://hub.mender.io/t/install-docker-compose-on-yocto-bbappend-not-being-picked-up/6739/5 "2024-04-17T16:05:13Z")

</div>

Hi @hackenstein,

So there’s definitely something off with your `bbappend`. So first and foremost, just ripping out the `THISDIR` and `PN` evaluation from `FILESEXTRASPATHS` definitely won’t work. The fact that your build is not falling over indicates that the file is not even being parsed.  
How does the directory structure in your layer look like? Did you base it off the demo layer, and drop it right next to the example? In that case, dynamic layer filtering might kick in.  
All in all, the simplest would probably be if you can show a tree dump of your layer, or the layer itself on GitHub or the likes.

Greets,  
Josef

---

<div class="post-metadata">

### Author: ![hackenstein](https://avatars.discourse-cdn.com/v4/letter/h/c37758/32.png) [@hackenstein](https://hub.mender.io/u/hackenstein)
#### Post date: [April 18, 2024, 12:29pm UTC](https://hub.mender.io/t/install-docker-compose-on-yocto-bbappend-not-being-picked-up/6739/6 "2024-04-18T12:29:44Z")

</div>

Here’s the tree dump

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/7/719d46d073293a4a9a556db48e1f3ebe9ed7139c.png)

---

<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: [April 18, 2024, 12:37pm UTC](https://hub.mender.io/t/install-docker-compose-on-yocto-bbappend-not-being-picked-up/6739/7 "2024-04-18T12:37:48Z")

</div>

Hi @hackenstein,

There’s a couple of issues here.  
First, you are missing a hierarchy level. Look at the `BBFILES` regex in your layers `conf/layer.conf`, and see that you need at least `recipes-kernel/linux/whatever.bbappend` for the `bbappend` to be picked up. Second, just `linux.bbappend` will fail as `bitbake` does not know about a `linux` recipe. There are a number of recipes for the linux kernel, and your append needs to select one through its name. Please see the documentation on creating a `bbappend`: [2 Common Tasks — The Yocto Project ® 4.3.999 documentation](https://docs.yoctoproject.org/kernel-dev/common.html?highlight=bbappend#creating-the-append-file)

Greets,  
Josef
