# How to launch docker image koenkk/zigbee2mqtt?

**URL:** <https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813>\
**Category:** balenaOS\
**Created:** [September 19, 2019, 6:52pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813 "2019-09-19T18:52:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dzheky](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dzheky/32/2522_2.png) [@Dzheky](https://forums.balena.io/u/Dzheky)\
**Post date:** [September 19, 2019, 6:52pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/1 "2019-09-19T18:52:08Z")

</div>

Hello can somebody test if it is possible to run this [https://www.zigbee2mqtt.io/information/docker.html](https://www.zigbee2mqtt.io/information/docker.html) on balena? I change `docker-compose.yml` version to `2.1` but still cannot start with command `balena push home.local` it gives me some weird errors.

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [September 19, 2019, 6:54pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/2 "2019-09-19T18:54:23Z")

</div>

Hey @Dzheky,

What are the errors that you’re getting? It might be helpful to post your docker-compose too.

---

<div class="post-metadata">

**Author:** ![Dzheky](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dzheky/32/2522_2.png) [@Dzheky](https://forums.balena.io/u/Dzheky)\
**Post date:** [September 19, 2019, 6:57pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/3 "2019-09-19T18:57:23Z")

</div>

here is the Error I am getting, I am sorry I am new to dockers, I don’t know where docker compose is, it is not my project, so I guess I use default everything from zibgee2mqtt  
 ![05](https://global.discourse-cdn.com/balena/original/2X/7/7b2241b0efffe1d1ec3cc30b71d0ef0df7df3ea6.png)

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [September 19, 2019, 7:02pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/4 "2019-09-19T19:02:23Z")

</div>

I’m assuming you’re using the docker-compose here:

```auto
 version: '3'
  services:
    zigbee2mqtt:
      container_name: zigbee2mqtt
      image: koenkk/zigbee2mqtt
      volumes:
        - ./data:/app/data
      devices:
        # CC251
        #- /dev/ttyUSB_cc2531:/dev/ttyACM0
        # CC2530 / GBAN GB2530S
        #- /dev/ttyUSB_cc2530:/dev/ttyACM0
      restart: always
      network_mode: host
      environment:
        - TZ=Europe/Amsterdam

```

if so, I guess the docker-compose parser does not like the lack of any device entry in the devices field. I’m not sure which you need, I guess that would be based on your device type and hardware attached. Which device type are you trying to deploy this on, and which zigbee hardware are you using?

---

<div class="post-metadata">

**Author:** ![Dzheky](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dzheky/32/2522_2.png) [@Dzheky](https://forums.balena.io/u/Dzheky)\
**Post date:** [September 19, 2019, 7:08pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/5 "2019-09-19T19:08:41Z")

</div>

ahh I see what you mean, I am using CC2530, so I need to uncomment this line `#- /dev/ttyUSB_cc2530:/dev/ttyACM0`, but I still get another error 😃  
 ![28](https://global.discourse-cdn.com/balena/original/2X/1/1662c59ec3092096afec832a329820c35e398b9c.png)

---

<div class="post-metadata">

**Author:** ![Dzheky](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dzheky/32/2522_2.png) [@Dzheky](https://forums.balena.io/u/Dzheky)\
**Post date:** [September 19, 2019, 7:09pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/6 "2019-09-19T19:09:30Z")

</div>

I am trying to deploy on Raspberry pi 3+ B

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [September 19, 2019, 7:12pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/7 "2019-09-19T19:12:43Z")

</div>

Ah yes I didn’t notice that at first. Balena devices are slightly different in that you need to first define the volume you want to use, so at the top level you want to add something like:

```auto
volumes:
  my-volume: {}

```

Then replace the line

```auto
- ./data:/app/data

```

with

```auto
- my-volume:/app/data

```

and you should be good to go.

---

<div class="post-metadata">

**Author:** ![Dzheky](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dzheky/32/2522_2.png) [@Dzheky](https://forums.balena.io/u/Dzheky)\
**Post date:** [September 19, 2019, 7:18pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/10 "2019-09-19T19:18:51Z")

</div>

> [@CameronDiver](#):
>
> - my-volume:/app/data

Yay, this worked, thank you!!

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [September 19, 2019, 7:21pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/11 "2019-09-19T19:21:52Z")

</div>

Glad to hear 😃

---

<div class="post-metadata">

**Author:** ![Dzheky](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dzheky/32/2522_2.png) [@Dzheky](https://forums.balena.io/u/Dzheky)\
**Post date:** [September 19, 2019, 7:50pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/13 "2019-09-19T19:50:07Z")

</div>

Well I think I am facing another problem that I don’t understand 😃  
The Docker seems to start and everything good, but the there is inifine

```auto
Device state not settled, retrying in 1000ms

```

and sometimes this

```auto
[9/19/2019, 10:45:18 PM] Starting service 'zigbee2mqtt sha256:3e9330c77f739cdb526390f41334ebc92071ad585b428f910c9d9323f8bd4bd6'

```

 ![24](https://global.discourse-cdn.com/balena/original/2X/a/aa0c497ab7fb47fdc54bc8eeaa1e8311a868a9ba.png)

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [September 19, 2019, 8:01pm UTC](https://forums.balena.io/t/how-to-launch-docker-image-koenkk-zigbee2mqtt/32813/14 "2019-09-19T20:01:15Z")

</div>

This is because you’re running with `DEBUG=1`, and this will be repeated until the device has finished reaching target state (which means that the application containers have fully started up). If you give it a little bit of time it should get to the point where the device state has settled you should be good to go.
